fix
This commit is contained in:
parent
0062ebdbac
commit
1380115e72
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user