Browse Source

cloud tier to non-AWS s3 gateways

pull/1862/head
Chris Lu 4 years ago
parent
commit
2cca07b44c
  1. 1
      weed/storage/backend/s3_backend/s3_sessions.go

1
weed/storage/backend/s3_backend/s3_sessions.go

@ -36,6 +36,7 @@ func createSession(awsAccessKeyId, awsSecretAccessKey, region, endpoint string)
config := &aws.Config{
Region: aws.String(region),
Endpoint: aws.String(endpoint),
S3ForcePathStyle: aws.Bool(true),
}
if awsAccessKeyId != "" && awsSecretAccessKey != "" {
config.Credentials = credentials.NewStaticCredentials(awsAccessKeyId, awsSecretAccessKey, "")

Loading…
Cancel
Save