mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-08 23:50:43 +02:00
Clarify weed mini credential configuration with examples
@@ -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.
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user