move s3 port settings to s3 endpoint
This commit is contained in:
parent
5baa93862e
commit
15154a3b59
2 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ AV_RETRY_DELAY_MILLISECONDS=1000
|
|||
|
||||
FILE_SAVING_PATH=/transfer/
|
||||
|
||||
S3_ENDPOINT=http://ervu-minio.k8s.micord.ru
|
||||
S3_ENDPOINT=http://ervu-minio.k8s.micord.ru:31900
|
||||
S3_PORT=31900
|
||||
S3_ACCESS_KEY=rlTdTvkmSXu9FsLhfecw
|
||||
S3_SECRET_KEY=NUmY0wwRIEyAd98GCKd1cOgJWvLQYAcMMul5Ulu0
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue