Browse Source

cloud tier to non-AWS s3 gateways

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

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

Loading…
Cancel
Save