This commit is contained in:
luke 2025-06-21 00:54:00 +08:00
parent 0062ebdbac
commit 1380115e72
2 changed files with 7 additions and 2 deletions

View File

@ -24,6 +24,8 @@ public class MinioOSGatewayImpl implements ObjectStorageGateway {
private final ObjectStorageProperties objectStorageProperties; private final ObjectStorageProperties objectStorageProperties;
@Value("${local.minio.endpoint:http://localhost:19000}")
private String localMinioEndpoint;
public MinioOSGatewayImpl( public MinioOSGatewayImpl(
@Value("${minio.endpoint:http://s3.wisdompulse.cn}") String endpoint, @Value("${minio.endpoint:http://s3.wisdompulse.cn}") String endpoint,
@ -37,7 +39,7 @@ public class MinioOSGatewayImpl implements ObjectStorageGateway {
.build(); .build();
// 为了提升上传的速度创建本地 minio 客户端 // 为了提升上传的速度创建本地 minio 客户端
this.localMinioClient = MinioClient.builder() this.localMinioClient = MinioClient.builder()
.endpoint("http://localhost:19000") .endpoint(localMinioEndpoint)
.credentials(accessKey, secretKey) .credentials(accessKey, secretKey)
.build(); .build();
this.objectStorageProperties = objectStorageProperties; this.objectStorageProperties = objectStorageProperties;

View File

@ -41,3 +41,6 @@ mybatis-plus.global-config.db-config.id-type=auto
# Redis 开关控制 # Redis 开关控制
knowledge.base.redis.enable=false knowledge.base.redis.enable=false
# 对象存储相关
local.minio.endpoint=http://s3.wisdompulse.cn