more syntax highting fixes and fixing spacing on the left of commands so they copy better

JesseBot 2023-11-21 16:03:31 +01:00
parent 47e235c615
commit e98e0ad976

@ -71,6 +71,7 @@ Not included:
* Policy
# Feature difference
| Feature | SeaweedFS | Amazon S3 |
| -------------------------------------- | --------- | --------- |
| Multi byte ranges reads | Yes | No |
@ -88,13 +89,20 @@ This is not so ideal. Another approach is to list current directory when deletin
The last approach, which is most efficient, is to maintain counters for each folder, and drop the folder as soon as it becomes empty. This is implemented in [[Cloud Monitoring]].
# S3 Authentication
By default, the access key and secret key to access `weed s3` is not authenticated. To enable credential based access, you can choose static or dynamic configuration:
* **Dynamic Configuration**: setup auth with `s3.configure` in `weed shell`
* **Static Configuration**: create a config.json file similar to the example below, and specify it via `weed s3 -config=config.json`
## Dynamic Configuration
Example command:
```bash
s3.configure -access_key=any -secret_key=any -buckets=bucket1 -user=me -actions=Read,Write,List,Tagging,Admin -apply
```
> s3.configure -access_key=any -secret_key=any -buckets=bucket1 -user=me -actions=Read,Write,List,Tagging,Admin -apply
Output from above `s3.configure` command:
```json
{
"identities": [
{