mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-06-02 08:10:17 +00:00
fix: make force-path-style available
This commit is contained in:
parent
373e96f0c9
commit
1e769f96dd
|
@ -55,6 +55,10 @@ func New(name string) *S3 {
|
||||||
awsCfg.DisableSSL = aws.Bool(true)
|
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))
|
sess := session.Must(session.NewSession(awsCfg))
|
||||||
uploader := s3manager.NewUploader(sess)
|
uploader := s3manager.NewUploader(sess)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user