update tag module s3 config

main
wangqing 9 months ago
parent ea6ee0b5d6
commit 9a07f5b1ad

@ -18,14 +18,16 @@ public class AwsS3Config {
@Bean
public S3Client s3Client(){
AwsBasicCredentials awsBasicCredentials = AwsBasicCredentials.create("GLwHmLTZ05Kw9RyCGJXnIkua", "ynOBIqdNXH5HBgrVA29DTn4cUSh1wAI");
// AwsBasicCredentials awsBasicCredentials = AwsBasicCredentials.create("GLwHmLTZ05Kw9RyCGJXnIkua", "ynOBIqdNXH5HBgrVA29DTn4cUSh1wAI");
AwsBasicCredentials awsBasicCredentials = AwsBasicCredentials.create("YaUJkVdm3btJxproam5a", "sCkKJdcImazyae1aHWIMAGg9XZLRGh3XXYerAB48");
S3Configuration s3Config = S3Configuration.builder().pathStyleAccessEnabled(true).build();
S3Client s3 = S3Client.builder()
.endpointOverride(URI.create("https://s3.bitiful.net/"))
.endpointOverride(URI.create("http://cdn1.indie.cn:19000/"))
.credentialsProvider(StaticCredentialsProvider.create(awsBasicCredentials))
.region(region)
.serviceConfiguration(s3Config)
.build();
return s3;
}
@ -33,9 +35,10 @@ public class AwsS3Config {
public S3Presigner s3Presigner(){
S3Configuration s3Config = S3Configuration.builder().pathStyleAccessEnabled(true).build();
S3Presigner presigner = S3Presigner.builder()
.endpointOverride(URI.create("https://s3.bitiful.net/"))
.endpointOverride(URI.create("http://cdn1.indie.cn:19000/"))
.region(region)
.build();
return presigner;
}
}

Loading…
Cancel
Save