mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-07 15:52:47 +01:00
Configurable S3 Region (#1007)
Co-authored-by: Jonas Plum <cugu@users.noreply.github.com>
This commit is contained in:
@@ -20,6 +20,7 @@ type Storage struct {
|
||||
type Config struct {
|
||||
Host string
|
||||
User string
|
||||
Region string
|
||||
Password string
|
||||
}
|
||||
|
||||
@@ -27,7 +28,7 @@ func New(config *Config) (*Storage, error) {
|
||||
s, err := session.NewSession(&aws.Config{
|
||||
Credentials: credentials.NewStaticCredentials(config.User, config.Password, ""),
|
||||
Endpoint: aws.String(config.Host),
|
||||
Region: aws.String("us-east-1"),
|
||||
Region: aws.String(config.Region),
|
||||
DisableSSL: aws.Bool(true),
|
||||
S3ForcePathStyle: aws.Bool(true),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user