From 023b38fe3f26a03a0a50d4bb75e9132373e5635a Mon Sep 17 00:00:00 2001 From: Arjun Mishra Date: Fri, 8 Jun 2018 12:07:14 -0700 Subject: [PATCH] Document adding host configuration through environment variable (#2458) --- docs/minio-client-complete-guide.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/minio-client-complete-guide.md b/docs/minio-client-complete-guide.md index ea5d95a9..5e300321 100644 --- a/docs/minio-client-complete-guide.md +++ b/docs/minio-client-complete-guide.md @@ -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_=https://:@ +``` +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.