adding support for B2 region (#4177)

Co-authored-by: Muhammad Hallaj bin Subery <hallaj@tuta.io>
This commit is contained in:
Muhammad Hallaj bin Subery
2023-02-06 13:24:21 +08:00
committed by GitHub
parent 84e9934bf9
commit 9bd422d2c9
19 changed files with 158 additions and 121 deletions

View File

@@ -27,7 +27,7 @@ func (s BackBlazeRemoteStorageMaker) Make(conf *remote_pb.RemoteConf) (remote_st
}
config := &aws.Config{
Endpoint: aws.String(conf.BackblazeEndpoint),
Region: aws.String("us-west-002"),
Region: aws.String(conf.BackblazeRegion),
S3ForcePathStyle: aws.Bool(true),
S3DisableContentMD5Validation: aws.Bool(true),
}