Skip to content

Commit

Permalink
s3 storage: set region even if not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
coolya committed Aug 15, 2022
1 parent b55a09d commit f8d3ea6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/main/kotlin/cloud/skadi/gist/Application.kt
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ fun initS3(): Pair<S3Client, S3Presigner> {
.build()
} else {
S3Presigner.builder()
.region(Region.of("nl-ams"))
.endpointOverride(URI(S3_ENDPOINT))
.credentialsProvider(credentialsProvider)
.build()
Expand All @@ -202,6 +203,7 @@ fun initS3(): Pair<S3Client, S3Presigner> {
.build()
} else {
S3Client.builder()
.region(Region.of("nl-ams"))
.endpointOverride(URI(S3_ENDPOINT))
.credentialsProvider(credentialsProvider)
.build()
Expand Down

0 comments on commit f8d3ea6

Please sign in to comment.