优化appsetting.json配置文件

This commit is contained in:
不做码农 2022-03-03 20:55:37 +08:00
parent 9c89842ede
commit 35219931b0
2 changed files with 2 additions and 6 deletions

View File

@ -30,7 +30,7 @@ namespace ZR.Admin.WebApi
public IConfiguration Configuration { get; } public IConfiguration Configuration { get; }
public void ConfigureServices(IServiceCollection services) public void ConfigureServices(IServiceCollection services)
{ {
string corsUrls = Configuration["sysConfig:cors"]; string corsUrls = Configuration["corsUrls"];
//ÅäÖÿçÓò //ÅäÖÿçÓò
services.AddCors(c => services.AddCors(c =>

View File

@ -13,10 +13,7 @@
"conn_zrAdmin_type": 1, //MySql = 0, SqlServer = 1 "conn_zrAdmin_type": 1, //MySql = 0, SqlServer = 1
"conn_bus_type": 1, "conn_bus_type": 1,
"urls": "http://localhost:8888", //url "urls": "http://localhost:8888", //url
"sysConfig": { "corsUrls": "http://localhost:8887", //","
"DBCommandTimeout": 10,
"cors": "http://localhost:8887" //","
},
"JwtSettings": { "JwtSettings": {
"Issuer": "ZRAdmin.NET", "Issuer": "ZRAdmin.NET",
"Audience": "ZRAdmin.NET", "Audience": "ZRAdmin.NET",
@ -26,7 +23,6 @@
"DemoMode": false, // "DemoMode": false, //
"DbKey": "", //key "DbKey": "", //key
"Upload": { "Upload": {
"UploadDirectory": "/",
"UploadUrl": "http://localhost:8888" "UploadUrl": "http://localhost:8888"
}, },
// //