From 2cca07b44c577d25df784db8d801f3ed99613ccd Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 28 Feb 2021 18:59:09 -0800 Subject: [PATCH] cloud tier to non-AWS s3 gateways --- weed/storage/backend/s3_backend/s3_sessions.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/weed/storage/backend/s3_backend/s3_sessions.go b/weed/storage/backend/s3_backend/s3_sessions.go index e2fdf1eb6..b8378c379 100644 --- a/weed/storage/backend/s3_backend/s3_sessions.go +++ b/weed/storage/backend/s3_backend/s3_sessions.go @@ -34,8 +34,9 @@ func createSession(awsAccessKeyId, awsSecretAccessKey, region, endpoint string) } config := &aws.Config{ - Region: aws.String(region), - Endpoint: aws.String(endpoint), + Region: aws.String(region), + Endpoint: aws.String(endpoint), + S3ForcePathStyle: aws.Bool(true), } if awsAccessKeyId != "" && awsSecretAccessKey != "" { config.Credentials = credentials.NewStaticCredentials(awsAccessKeyId, awsSecretAccessKey, "")