Document adding host configuration through environment variable (#2458)
This commit is contained in:
@@ -142,6 +142,15 @@ mc config host add gcs https://storage.googleapis.com BKIKJAA5BMMU2RHO6IBB V8f1
|
||||
|
||||
NOTE: Google Cloud Storage only supports Legacy Signature Version 2, so you have to pick - S3v2
|
||||
|
||||
### Specify host configuration through environment variable
|
||||
```sh
|
||||
export MC_HOSTS_<alias>=https://<Access Key>:<Secret Key>@<YOUR-S3-ENDPOINT>
|
||||
```
|
||||
Example:
|
||||
```sh
|
||||
export MC_HOSTS_myalias=https://Q3AM3UQ867SPQQA43P2F:zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG@play.minio.io:9000
|
||||
mc ls myalias
|
||||
```
|
||||
## 4. Test Your Setup
|
||||
`mc` is pre-configured with https://play.minio.io:9000, aliased as "play". It is a hosted Minio server for testing and development purpose. To test Amazon S3, simply replace "play" with "s3" or the alias you used at the time of setup.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user