aboutsummaryrefslogtreecommitdiff
path: root/weed/remote_storage
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-08-23 03:30:41 -0700
committerChris Lu <chris.lu@gmail.com>2021-08-23 03:30:41 -0700
commit00c4e06caad6f5960c3acfdd07106e2d8e3577c5 (patch)
treebecbacd957426354f9d7b80f750f19f08c37d355 /weed/remote_storage
parentf0cc130849461fa17595eeb926a48845e34a1616 (diff)
downloadseaweedfs-00c4e06caad6f5960c3acfdd07106e2d8e3577c5.tar.xz
seaweedfs-00c4e06caad6f5960c3acfdd07106e2d8e3577c5.zip
cloud drive: s3 configurable force path style
Diffstat (limited to 'weed/remote_storage')
-rw-r--r--weed/remote_storage/s3/s3_storage_client.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/remote_storage/s3/s3_storage_client.go b/weed/remote_storage/s3/s3_storage_client.go
index defe2aee8..7aee1ccef 100644
--- a/weed/remote_storage/s3/s3_storage_client.go
+++ b/weed/remote_storage/s3/s3_storage_client.go
@@ -29,6 +29,7 @@ func (s s3RemoteStorageMaker) Make(conf *filer_pb.RemoteConf) (remote_storage.Re
config := &aws.Config{
Region: aws.String(conf.S3Region),
Endpoint: aws.String(conf.S3Endpoint),
+ S3ForcePathStyle: aws.Bool(conf.S3ForcePathStyle),
}
if conf.S3AccessKey != "" && conf.S3SecretKey != "" {
config.Credentials = credentials.NewStaticCredentials(conf.S3AccessKey, conf.S3SecretKey, "")