mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2025-01-06 00:20:56 +00:00
fix: make force-path-style available
This commit is contained in:
parent
373e96f0c9
commit
1e769f96dd
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue