From ffe2b3c24dfb238f3cb037b383ba6c22afdcf1e8 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期三, 18 五月 2022 01:50:26 +0800
Subject: [PATCH] fix 修复 S3 协议 minio 使用 localhost 问题 采用 127.0.0.1 代替

---
 script/sql/update/postgres/update-4.1-4.2.sql |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/script/sql/update/postgres/update-4.1-4.2.sql b/script/sql/update/postgres/update-4.1-4.2.sql
index 1ef4c22..5ea2cf5 100644
--- a/script/sql/update/postgres/update-4.1-4.2.sql
+++ b/script/sql/update/postgres/update-4.1-4.2.sql
@@ -2,10 +2,10 @@
 
 COMMENT ON COLUMN "sys_oss_config"."domain" IS '鑷畾涔夊煙鍚�';
 
-update sys_oss_config set endpoint = 'localhost:9000' where oss_config_id = 1;
+update sys_oss_config set endpoint = '127.0.0.1:9000' where oss_config_id = 1;
 update sys_oss_config set endpoint = 's3-cn-north-1.qiniucs.com', region = '' where oss_config_id = 2;
 update sys_oss_config set endpoint = 'oss-cn-beijing.aliyuncs.com' where oss_config_id = 3;
 update sys_oss_config set endpoint = 'cos.ap-beijing.myqcloud.com' where oss_config_id = 4;
 
-insert into sys_oss_config values (5, 'image',  'ruoyi', 'ruoyi123', 'ruoyi', 'image', 'localhost:9000', 'N', '', '1', '', 'admin', now(), 'admin', now(), NULL, '');
+insert into sys_oss_config values (5, 'image',  'ruoyi', 'ruoyi123', 'ruoyi', 'image', '127.0.0.1:9000', 'N', '', '1', '', 'admin', now(), 'admin', now(), NULL, '');
 

--
Gitblit v1.9.3