move s3 port settings to s3 endpoint

This commit is contained in:
Pavel Zilke 2024-09-25 21:10:58 +03:00
parent 5baa93862e
commit 15154a3b59
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ public class S3Connection {
private static AmazonS3 getS3Client(String endpoint, int port, String accessKey,
String secretKey) {
AWSCredentials credentials = new BasicAWSCredentials(accessKey, secretKey);
String s3Endpoint = endpoint + ":" + port;
String s3Endpoint = endpoint;
String region = Region.getRegion(Regions.DEFAULT_REGION).toString();
return AmazonS3ClientBuilder.standard()