From 3772c90eec4b77a9d0e701528f080bceca0cd914 Mon Sep 17 00:00:00 2001 From: Joshi <3040996759@qq.com> Date: Wed, 13 May 2026 11:23:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(config):=20=E6=9B=B4=E6=96=B0MinIO=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=B8=BA=E7=94=9F=E4=BA=A7=E7=8E=AF=E5=A2=83=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将客户端VITE_MINIO_PUBLIC_URL从localhost改为生产服务器地址 - 将服务端MinIO配置从测试凭据改为默认管理员凭据 - 确保前后端MinIO地址配置一致以支持生产环境文件上传功能 --- client/.env.production | 2 +- server/src/main/resources/application.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/.env.production b/client/.env.production index 2bc6a1f..a5d4058 100644 --- a/client/.env.production +++ b/client/.env.production @@ -1,3 +1,3 @@ VITE_SITE_CODE=cg VITE_API_BASE_URL=/api -VITE_MINIO_PUBLIC_URL=http://localhost:9000/chuanggao-images +VITE_MINIO_PUBLIC_URL=http://117.72.159.31:9000/chuanggao-images diff --git a/server/src/main/resources/application.yml b/server/src/main/resources/application.yml index 49d910c..f72c222 100644 --- a/server/src/main/resources/application.yml +++ b/server/src/main/resources/application.yml @@ -40,8 +40,8 @@ sa-token: # MinIO minio: endpoint: http://117.72.159.31:9000 - access-key: sdjKoDWRPC12nkKQIuz9 - secret-key: BQfVWmO58E2SQS9vBRutr8zD12qxyIgKevr4XNbr + access-key: minioadmin + secret-key: minioadmin bucket: chuanggao-images public-url: http://117.72.159.31:9000/chuanggao-images