Clarify weed mini credential configuration with examples

Chris Lu
2026-01-14 12:52:36 -08:00
parent 235c242e59
commit 464cad3e7a
+6
@@ -90,7 +90,13 @@ By default, the SeaweedFS S3 gateway starts in **"Allow All" mode** if no S3 cre
To enable authentication for `weed mini`, use one of the following methods:
1. **Environment Variables**: Set `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` before starting.
```bash
AWS_ACCESS_KEY_ID=any AWS_SECRET_ACCESS_KEY=any weed mini -dir=/data
```
2. **Config File**: Use the `-s3.config` flag with a JSON credentials file.
```bash
weed mini -dir=/data -s3.config=s3.config
```
3. **Dynamic Configuration**: Start normally, then add users through the **Admin UI** or **weed shell**. The server will automatically switch from "Allow All" to "Authentication Required" mode.
---