Merge pull request #2484 from restic/add-s3-region

s3: Allow specifying region
This commit is contained in:
rawtaz
2019-11-22 15:51:17 +01:00
committed by GitHub
5 changed files with 21 additions and 7 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")
}