From 984fdd61925560ebadb6f3bb8c80d6bbf94d291c Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 28 Feb 2021 16:20:13 -0800 Subject: [PATCH] always use non bucket prefixing url --- weed/replication/sink/s3sink/s3_sink.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/replication/sink/s3sink/s3_sink.go b/weed/replication/sink/s3sink/s3_sink.go index ea219ce74..9a36573e3 100644 --- a/weed/replication/sink/s3sink/s3_sink.go +++ b/weed/replication/sink/s3sink/s3_sink.go @@ -76,6 +76,7 @@ func (s3sink *S3Sink) initialize(awsAccessKeyId, awsSecretAccessKey, region, buc config := &aws.Config{ Region: aws.String(s3sink.region), Endpoint: aws.String(s3sink.endpoint), + S3ForcePathStyle: aws.Bool(true), } if awsAccessKeyId != "" && awsSecretAccessKey != "" { config.Credentials = credentials.NewStaticCredentials(awsAccessKeyId, awsSecretAccessKey, "")