Browse Source

always use non bucket prefixing url

pull/1862/head
Chris Lu 4 years ago
parent
commit
984fdd6192
  1. 1
      weed/replication/sink/s3sink/s3_sink.go

1
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, "")

Loading…
Cancel
Save