From f8d3ea63d465a17683bce64083e618ebabafca18 Mon Sep 17 00:00:00 2001 From: Kolja Dummann Date: Mon, 15 Aug 2022 11:16:44 +0200 Subject: [PATCH] s3 storage: set region even if not needed --- server/src/main/kotlin/cloud/skadi/gist/Application.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/main/kotlin/cloud/skadi/gist/Application.kt b/server/src/main/kotlin/cloud/skadi/gist/Application.kt index 20902cbe..62886f33 100644 --- a/server/src/main/kotlin/cloud/skadi/gist/Application.kt +++ b/server/src/main/kotlin/cloud/skadi/gist/Application.kt @@ -190,6 +190,7 @@ fun initS3(): Pair { .build() } else { S3Presigner.builder() + .region(Region.of("nl-ams")) .endpointOverride(URI(S3_ENDPOINT)) .credentialsProvider(credentialsProvider) .build() @@ -202,6 +203,7 @@ fun initS3(): Pair { .build() } else { S3Client.builder() + .region(Region.of("nl-ams")) .endpointOverride(URI(S3_ENDPOINT)) .credentialsProvider(credentialsProvider) .build()