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

View File

@ -40,4 +40,7 @@ mybatis-plus.global-config.db-config.logic-delete-field=deleted
mybatis-plus.global-config.db-config.id-type=auto
# Redis 开关控制
knowledge.base.redis.enable=false
knowledge.base.redis.enable=false
# 对象存储相关
local.minio.endpoint=http://s3.wisdompulse.cn