From 28d1f4251b539db50ceed3c16c31b30c3a8a5590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=82=A5=E7=BE=8A?= <1048382248@qq.com> Date: Mon, 25 Aug 2025 10:35:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../appsettings.Development.json | 3 +++ .../appsettings.Production.json | 2 +- Learn.Archives.API/appsettings.Staging.json | 27 +++++++++++++++++++ Learn.Archives.API/appsettings.json | 4 +-- 4 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 Learn.Archives.API/appsettings.Development.json create mode 100644 Learn.Archives.API/appsettings.Staging.json diff --git a/Learn.Archives.API/appsettings.Development.json b/Learn.Archives.API/appsettings.Development.json new file mode 100644 index 0000000..bfd870e --- /dev/null +++ b/Learn.Archives.API/appsettings.Development.json @@ -0,0 +1,3 @@ +{ +} + diff --git a/Learn.Archives.API/appsettings.Production.json b/Learn.Archives.API/appsettings.Production.json index 769d062..cd2dc43 100644 --- a/Learn.Archives.API/appsettings.Production.json +++ b/Learn.Archives.API/appsettings.Production.json @@ -25,4 +25,4 @@ } ] } -} + diff --git a/Learn.Archives.API/appsettings.Staging.json b/Learn.Archives.API/appsettings.Staging.json new file mode 100644 index 0000000..10408ea --- /dev/null +++ b/Learn.Archives.API/appsettings.Staging.json @@ -0,0 +1,27 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Error", + "Microsoft.AspNetCore": "Error" + } + }, + "Redis": { + "ConnectionString": "redis-service.infra.svc.cluster.local:6379,password=tBHjtmXVRnEywYUfJjQp,defaultDatabase=5" + }, + "DB": { + "ConnectionString": "AllowLoadLocalInfile=true;Server=58.17.132.2;User ID=marking;Password=qwe123!@#;Port=3306;Database=learn.archives;CharSet=utf8mb4;Port=43306;pooling=true;SslMode=None;", + "SqlType": "MySql", + "UpdateTable": false + }, + "UserCenterService": { + "API": "https://dca.w.23544.com:8843/api" + }, + "OtherDBArr": [ + { + "ConfigId": 1001, //用户中心 + "ConnectionString": "AllowLoadLocalInfile=true;Server=58.17.132.2;User ID=marking;Password=qwe123!@#;Port=3306;Database=usercenter;CharSet=utf8mb4;Port=43306;pooling=true;SslMode=None;", + "SqlType": "MySql" + } + ] +} + diff --git a/Learn.Archives.API/appsettings.json b/Learn.Archives.API/appsettings.json index 60f3648..ab25147 100644 --- a/Learn.Archives.API/appsettings.json +++ b/Learn.Archives.API/appsettings.json @@ -12,9 +12,9 @@ "ConnectionString": "127.0.0.1:6379,password=Woshiren123,defaultDatabase=10" }, "DB": { - "ConnectionString": "AllowLoadLocalInfile=true;Server=192.168.2.9;User ID=root;Password=qwe123!@#;Port=3306;Database=learn.archives;CharSet=utf8mb4;pooling=true;SslMode=None;", + "ConnectionString": "AllowLoadLocalInfile=true;Server=58.17.132.2;User ID=marking;Password=qwe123!@#;Port=3306;Database=learn.archives;CharSet=utf8mb4;Port=43306;pooling=true;SslMode=None;", "SqlType": "MySql", - "UpdateTable": false + "UpdateTable": false }, "AuthKey": { "Secret": "9FAB7AC7-F1DB-4C56-B84F-044055A34AF2",