diff --git a/cmd/server-main.go b/cmd/server-main.go index 1a84f6250..fb96e2de0 100644 --- a/cmd/server-main.go +++ b/cmd/server-main.go @@ -58,6 +58,9 @@ ENVIRONMENT VARIABLES: BROWSER: MINIO_BROWSER: To disable web browser access, set this value to "off". + REGION: + MINIO_REGION: To set custom region. By default it is "us-east-1". + EXAMPLES: 1. Start minio server on "/home/shared" directory. $ {{.HelpName}} /home/shared diff --git a/docs/config/README.md b/docs/config/README.md index 887cb6d9e..4ba4f5061 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -48,7 +48,14 @@ minio server ~/Photos #### Region |Field|Type|Description| |:---|:---|:---| -|``region``| _string_ | `region` describes the physical location of the server. By default it is set to `us-east-1`, which is same as AWS3's default region. If you are unsure leave it to default.| +|``region``| _string_ | `region` describes the physical location of the server. By default it is set to `us-east-1`, which is same as AWS S3's default region. You may override this field with `MINIO_REGION` environment variable. If you are unsure leave it unset.| + +Example: + +```sh +export MINIO_REGION="my_region" +minio server ~/Photos +``` #### Browser |Field|Type|Description|