Skip to content

Commit

Permalink
fix: make force-path-style available
Browse files Browse the repository at this point in the history
  • Loading branch information
mstg committed Sep 10, 2021
1 parent 373e96f commit 1e769f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/blob/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ func New(name string) *S3 {
awsCfg.DisableSSL = aws.Bool(true)
}

if forcePathStyle := viper.GetBool("s3-force-path-style"); forcePathStyle {
awsCfg.S3ForcePathStyle = aws.Bool(true)
}

sess := session.Must(session.NewSession(awsCfg))
uploader := s3manager.NewUploader(sess)

Expand Down

0 comments on commit 1e769f9

Please sign in to comment.