Add AWS_REGION env var to specify s3 region

This commit is contained in:
mdauphin
2019-07-23 11:14:26 +02:00
committed by Alexander Neumann
parent aa5af8af0e
commit df500a372d
3 changed files with 6 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ func open(cfg Config, rt http.RoundTripper) (*Backend, error) {
},
},
})
client, err := minio.NewWithCredentials(cfg.Endpoint, creds, !cfg.UseHTTP, "")
client, err := minio.NewWithCredentials(cfg.Endpoint, creds, !cfg.UseHTTP, cfg.Region)
if err != nil {
return nil, errors.Wrap(err, "minio.NewWithCredentials")
}