use provided region in tier configuration for S3 backend (#21365)

fixes #21364
This commit is contained in:
Sung Jeon 2025-06-09 01:13:30 +09:00 committed by GitHub
parent e2245a0b12
commit 417c8648f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -163,6 +163,7 @@ func newWarmBackendS3(conf madmin.TierS3, tier string) (*warmBackendS3, error) {
Creds: creds, Creds: creds,
Secure: u.Scheme == "https", Secure: u.Scheme == "https",
Transport: globalRemoteTargetTransport, Transport: globalRemoteTargetTransport,
Region: conf.Region,
} }
client, err := minio.New(u.Host, opts) client, err := minio.New(u.Host, opts)
if err != nil { if err != nil {