fix
This commit is contained in:
parent
06c3882190
commit
9360afa83b
@ -37,8 +37,14 @@ public class MinioOSGatewayImpl implements ObjectStorageGateway {
|
||||
.build();
|
||||
// 为了提升上传的速度,创建本地 minio 客户端
|
||||
String activeProfile = System.getProperty("spring.profiles.active", "docker");
|
||||
String localEndPoint = "http://localhost:19000";
|
||||
if("docker".equals(activeProfile)) {
|
||||
localEndPoint = "http://host.docker.internal:19000";
|
||||
}else if("mac".equals(activeProfile)) {
|
||||
localEndPoint = "http://s3.wisdompulse.cn";
|
||||
}
|
||||
this.localMinioClient = MinioClient.builder()
|
||||
.endpoint(Set.of("windows", "docker").contains(activeProfile) ? "http://localhost:19000" : "http://s3.wisdompulse.cn")
|
||||
.endpoint(localEndPoint)
|
||||
.credentials(accessKey, secretKey)
|
||||
.build();
|
||||
this.objectStorageProperties = objectStorageProperties;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user