aboutsummaryrefslogtreecommitdiff
path: root/weed/remote_storage/s3/aliyun.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/remote_storage/s3/aliyun.go')
-rw-r--r--weed/remote_storage/s3/aliyun.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/weed/remote_storage/s3/aliyun.go b/weed/remote_storage/s3/aliyun.go
index 3a681369a..864e4d5d0 100644
--- a/weed/remote_storage/s3/aliyun.go
+++ b/weed/remote_storage/s3/aliyun.go
@@ -18,6 +18,10 @@ func init() {
type AliyunRemoteStorageMaker struct{}
+func (s AliyunRemoteStorageMaker) HasBucket() bool {
+ return true
+}
+
func (s AliyunRemoteStorageMaker) Make(conf *remote_pb.RemoteConf) (remote_storage.RemoteStorageClient, error) {
client := &s3RemoteStorageClient{
conf: conf,
@@ -26,9 +30,9 @@ func (s AliyunRemoteStorageMaker) Make(conf *remote_pb.RemoteConf) (remote_stora
secretKey := util.Nvl(conf.AliyunSecretKey, os.Getenv("ALICLOUD_ACCESS_KEY_SECRET"))
config := &aws.Config{
- Endpoint: aws.String(conf.AliyunEndpoint),
- Region: aws.String(conf.AliyunRegion),
- S3ForcePathStyle: aws.Bool(false),
+ Endpoint: aws.String(conf.AliyunEndpoint),
+ Region: aws.String(conf.AliyunRegion),
+ S3ForcePathStyle: aws.Bool(false),
S3DisableContentMD5Validation: aws.Bool(true),
}
if accessKey != "" && secretKey != "" {