This commit is contained in:
luke 2025-06-21 01:16:52 +08:00
parent 343472f5cb
commit 06c3882190

View File

@ -38,7 +38,7 @@ public class MinioOSGatewayImpl implements ObjectStorageGateway {
// 为了提升上传的速度创建本地 minio 客户端 // 为了提升上传的速度创建本地 minio 客户端
String activeProfile = System.getProperty("spring.profiles.active", "docker"); String activeProfile = System.getProperty("spring.profiles.active", "docker");
this.localMinioClient = MinioClient.builder() this.localMinioClient = MinioClient.builder()
.endpoint(Set.of("windows", "docker").contains(activeProfile) ? "http://localhost:9000" : "http://s3.wisdompulse.cn") .endpoint(Set.of("windows", "docker").contains(activeProfile) ? "http://localhost:19000" : "http://s3.wisdompulse.cn")
.credentials(accessKey, secretKey) .credentials(accessKey, secretKey)
.build(); .build();
this.objectStorageProperties = objectStorageProperties; this.objectStorageProperties = objectStorageProperties;