We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83d504a commit 47fc0bbCopy full SHA for 47fc0bb
storage/backend/s3/s3.go
@@ -33,10 +33,11 @@ type Backend struct {
33
// New creates an S3 backend.
34
func New(l log.Logger, c Config, debug bool) (*Backend, error) {
35
conf := &aws.Config{
36
- Region: aws.String(c.Region),
37
- Endpoint: &c.Endpoint,
38
- DisableSSL: aws.Bool(!strings.HasPrefix(c.Endpoint, "https://")),
39
- S3ForcePathStyle: aws.Bool(c.PathStyle),
+ Region: aws.String(c.Region),
+ }
+ if c.Endpoint != "" {
+ conf.Endpoint = aws.String(c.Endpoint)
40
+ conf.S3ForcePathStyle = aws.Bool(true)
41
}
42
43
// Use anonymous credentials if the S3 bucket is public
0 commit comments