mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-06-20 19:02:48 +08:00
fixed: minio的domain为域名无法上传文件
This commit is contained in:
parent
3ea07739d1
commit
12c4b810c2
@ -77,8 +77,11 @@ public class S3Util {
|
||||
new AwsClientBuilder.EndpointConfiguration(
|
||||
defaultConfig.getEndpoint(), defaultConfig.getRegion());
|
||||
|
||||
return AmazonS3ClientBuilder.standard()
|
||||
.withCredentials(new AWSStaticCredentialsProvider(credentials))
|
||||
AmazonS3ClientBuilder builder = AmazonS3ClientBuilder.standard();
|
||||
// 开启路径访问
|
||||
builder.setPathStyleAccessEnabled(true);
|
||||
|
||||
return builder.withCredentials(new AWSStaticCredentialsProvider(credentials))
|
||||
.withEndpointConfiguration(endpointConfiguration)
|
||||
.build();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user