fix 修复 minio配置https遇到的问题

2.X
疯狂的狮子li 2 years ago
parent 3e34cdf030
commit eec0366ab1

@ -78,7 +78,8 @@ services:
# 管理后台密码最小8个字符 # 管理后台密码最小8个字符
MINIO_SECRET_KEY: ruoyi123 MINIO_SECRET_KEY: ruoyi123
# https需要指定域名 # https需要指定域名
MINIO_SERVER_URL: "" #MINIO_SERVER_URL: "https://xxx.com:9000"
#MINIO_BROWSER_REDIRECT_URL: "https://xxx.com:9001"
# 开启压缩 on 开启 off 关闭 # 开启压缩 on 开启 off 关闭
MINIO_COMPRESS: "off" MINIO_COMPRESS: "off"
# 扩展名 .pdf,.doc 为空 所有类型均压缩 # 扩展名 .pdf,.doc 为空 所有类型均压缩

@ -57,6 +57,8 @@ public class OssClient {
.withClientConfiguration(clientConfig) .withClientConfiguration(clientConfig)
.withCredentials(credentialsProvider) .withCredentials(credentialsProvider)
.disableChunkedEncoding() .disableChunkedEncoding()
// https限制使用域名访问 需要此配置 站点填域名
.enablePathStyleAccess()
.build(); .build();
createBucket(); createBucket();

Loading…
Cancel
Save