From e104f0cce53fe27be1520cfc6469e16feeced927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?= <15040126243@163.com> Date: Mon, 22 Aug 2022 18:42:33 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20minio=E9=85=8D?= =?UTF-8?q?=E7=BD=AEhttps=E9=81=87=E5=88=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-oss/src/main/java/com/ruoyi/oss/core/OssClient.java | 2 ++ script/docker/docker-compose.yml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ruoyi-oss/src/main/java/com/ruoyi/oss/core/OssClient.java b/ruoyi-oss/src/main/java/com/ruoyi/oss/core/OssClient.java index cc79a6bb..f0776dc3 100644 --- a/ruoyi-oss/src/main/java/com/ruoyi/oss/core/OssClient.java +++ b/ruoyi-oss/src/main/java/com/ruoyi/oss/core/OssClient.java @@ -56,6 +56,8 @@ public class OssClient { .withClientConfiguration(clientConfig) .withCredentials(credentialsProvider) .disableChunkedEncoding() + // https限制使用域名访问 需要此配置 站点填域名 + .enablePathStyleAccess() .build(); createBucket(); diff --git a/script/docker/docker-compose.yml b/script/docker/docker-compose.yml index 57a73592..86be0dcb 100644 --- a/script/docker/docker-compose.yml +++ b/script/docker/docker-compose.yml @@ -82,7 +82,8 @@ services: # 管理后台密码,最小8个字符 MINIO_SECRET_KEY: ruoyi123 # https需要指定域名 - MINIO_SERVER_URL: "" + #MINIO_SERVER_URL: "https://xxx.com:9000" + #MINIO_BROWSER_REDIRECT_URL: "https://xxx.com:9001" # 开启压缩 on 开启 off 关闭 MINIO_COMPRESS: "off" # 扩展名 .pdf,.doc 为空 所有类型均压缩