Skip to content

Commit

Permalink
Merge pull request #8 from NBISweden/push-static-files
Browse files Browse the repository at this point in the history
fixed auto region and git ignore
  • Loading branch information
darthvader2 authored Mar 5, 2024
2 parents a97d9fe + d87550c commit 2898e3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ web/static/img/m_p_b/
web/static/img/m_p_c/
web/static/img/m_p_p/
web/static/img/m_r_f/
web/content/datasets/*
web/content/datasets/*
dev_utils/config.yaml
4 changes: 2 additions & 2 deletions s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func connectMetadatas3(mConf MetadataS3Config) *MetadataBackend {
})

cfg, err := config.LoadDefaultConfig(context.TODO(),
config.WithRegion(mConf.Region),
config.WithRegion("auto"),
config.WithHTTPClient(httpClient),
config.WithCredentialsProvider(credentials.NewStaticCredentialsProvider(mConf.AccessKey, mConf.SecretKey, "")),
config.WithEndpointResolverWithOptions(aws.EndpointResolverWithOptionsFunc(
Expand Down Expand Up @@ -69,7 +69,7 @@ func connectDeployments3(dConf DeployS3Config) *DeploymentBackend {
})

cfg, err := config.LoadDefaultConfig(context.TODO(),
config.WithRegion(dConf.Region),
config.WithRegion("auto"),
config.WithHTTPClient(httpClient),
config.WithCredentialsProvider(credentials.NewStaticCredentialsProvider(dConf.AccessKey, dConf.SecretKey, "")),
config.WithEndpointResolverWithOptions(aws.EndpointResolverWithOptionsFunc(
Expand Down

0 comments on commit 2898e3a

Please sign in to comment.