diff --git a/Learn.Archives.API/appsettings.Production.json b/Learn.Archives.API/appsettings.Production.json index e21313d..b565b8f 100644 --- a/Learn.Archives.API/appsettings.Production.json +++ b/Learn.Archives.API/appsettings.Production.json @@ -5,23 +5,25 @@ "Microsoft.AspNetCore": "Error" } }, - "Redis": { - "ConnectionString": "r-2vc07uq6kgm580hxeu.redis.cn-chengdu.rds.aliyuncs.com:6379,password=r-2vc07uq6kgm580hxeu:JyFQa8MeZ4ndxVbdhUc6,defaultDatabase=3" - }, - "DB": { - "ConnectionString": "AllowLoadLocalInfile=true;Server=rm-2vc20nd3d11g0oh6g2o.rwlb.cn-chengdu.rds.aliyuncs.com;User ID=marking;Password=poiuytPOIUYT098765)(*&^%;Port=3306;Database=learn.archives;CharSet=utf8mb4;pooling=true;SslMode=None", - "SqlType": "MySql", - "UpdateTable": false - }, - "UserCenterService": { - "API": "https://dcb.23544.com/api" - }, - "OtherDBArr": [ - { - "ConfigId": 1001, //用户中心 - "ConnectionString": "AllowLoadLocalInfile=true;Server=rm-2vc20nd3d11g0oh6g2o.rwlb.cn-chengdu.rds.aliyuncs.com;User ID=marking;Password=poiuytPOIUYT098765)(*&^%;Port=3306;Database=usercenter_v1;CharSet=utf8mb4;pooling=true;SslMode=None", - "SqlType": "MySql" - } - ] + "AppConfig": { + "ID": 2, //程序唯一值 + "Redis": { + "ConnectionString": "r-2vc07uq6kgm580hxeu.redis.cn-chengdu.rds.aliyuncs.com:6379,password=r-2vc07uq6kgm580hxeu:JyFQa8MeZ4ndxVbdhUc6,defaultDatabase=3" + }, + "DB": { + "ConnectionString": "AllowLoadLocalInfile=true;Server=rm-2vc20nd3d11g0oh6g2o.rwlb.cn-chengdu.rds.aliyuncs.com;User ID=marking;Password=poiuytPOIUYT098765)(*&^%;Port=3306;Database=learn.archives;CharSet=utf8mb4;pooling=true;SslMode=None", + "SqlType": "MySql", + "UpdateTable": false + }, + "UserCenterService": { + "API": "https://dcb.23544.com/api" + }, + "OtherDBArr": [ + { + "ConfigId": 1001, //用户中心 + "ConnectionString": "AllowLoadLocalInfile=true;Server=rm-2vc20nd3d11g0oh6g2o.rwlb.cn-chengdu.rds.aliyuncs.com;User ID=marking;Password=poiuytPOIUYT098765)(*&^%;Port=3306;Database=usercenter_v1;CharSet=utf8mb4;pooling=true;SslMode=None", + "SqlType": "MySql" + } + ] + } } - diff --git a/Learn.Archives.API/appsettings.Staging.json b/Learn.Archives.API/appsettings.Staging.json index cc7f6f5..3ca20c6 100644 --- a/Learn.Archives.API/appsettings.Staging.json +++ b/Learn.Archives.API/appsettings.Staging.json @@ -5,23 +5,24 @@ "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!@#;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_v1;CharSet=utf8mb4;Port=43306;pooling=true;SslMode=None;", - "SqlType": "MySql" - } - ] + "AppConfig": { + "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!@#;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_v1;CharSet=utf8mb4;Port=43306;pooling=true;SslMode=None;", + "SqlType": "MySql" + } + ] + } } -