贾荣国
3 years ago
15 changed files with 167 additions and 27 deletions
@ -0,0 +1,2 @@ |
|||||
|
{ |
||||
|
} |
@ -0,0 +1,2 @@ |
|||||
|
{ |
||||
|
} |
@ -0,0 +1,38 @@ |
|||||
|
{ |
||||
|
"App": { |
||||
|
"SelfUrl": "https://scp.iacchina.net:9988", |
||||
|
"CorsOrigins": "https://scp.iacchina.net:9977,https://scp.iacchina.net:9988,https://localhost:9977,https://localhost:9988", |
||||
|
"RedirectAllowedUrls": "https://scp.iacchina.net:9977,https://scp.iacchina.net:9988" |
||||
|
}, |
||||
|
"ConnectionStrings": { |
||||
|
"Default": "Server=127.0.0.1,13314;Database=Scp_WebApi;User ID=superadmin;Password=Microsoft@2021;connection timeout=600;", |
||||
|
"WebApi": "Server=127.0.0.1,13314;Database=Scp_WebApi;User ID=superadmin;Password=Microsoft@2021;connection timeout=600;", |
||||
|
"V1Scp": "Server=127.0.0.1£º13314;Database=Scp_AC;User ID=sa;Password=Microsoft2008;connection timeout=600;" |
||||
|
}, |
||||
|
"AuthServer": { |
||||
|
"Authority": "https://scp.iacchina.net:9988", |
||||
|
"RequireHttpsMetadata": "false", |
||||
|
"SwaggerClientId": "WebApi_Swagger", |
||||
|
"SwaggerClientSecret": "1q2w3e*" |
||||
|
}, |
||||
|
"IdentityServer": { |
||||
|
"Clients": { |
||||
|
"WebApi_Web": { |
||||
|
"ClientId": "WebApi_Web", |
||||
|
"ClientSecret": "1q2w3e*", |
||||
|
"RootUrl": "https://scp.iacchina.net:9988" |
||||
|
}, |
||||
|
"WebApi_App": { |
||||
|
"ClientId": "WebApi_App", |
||||
|
"ClientSecret": "1q2w3e*", |
||||
|
"RootUrl": "https://scp.iacchina.net:9988" |
||||
|
}, |
||||
|
"WebApi_Swagger": { |
||||
|
"ClientId": "WebApi_Swagger", |
||||
|
"ClientSecret": "1q2w3e*", |
||||
|
"RootUrl": "https://scp.iacchina.net:9988" |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
"AlwaysAllowAuthorization": false |
||||
|
} |
@ -0,0 +1,2 @@ |
|||||
|
{ |
||||
|
} |
@ -0,0 +1,46 @@ |
|||||
|
{ |
||||
|
"Serilog": { |
||||
|
"Using": [ "Serilog.Sinks.File", "Serilog.Sinks.Async", "Serilog.Sinks.Console", "Serilog.Sinks.MSSqlServer" ], |
||||
|
"MinimumLevel": { |
||||
|
"Default": "Debug", |
||||
|
"Override": { |
||||
|
"Microsoft": "Information", |
||||
|
"Microsoft.EntityFrameworkCore": "Warning" |
||||
|
} |
||||
|
}, |
||||
|
"WriteTo": [ |
||||
|
{ |
||||
|
"Name": "Async", |
||||
|
"Args": { |
||||
|
"configure": [ |
||||
|
{ |
||||
|
"Name": "File", |
||||
|
"Args": { |
||||
|
"path": "Logs\\log.txt", |
||||
|
"rollingInterval": "Day", |
||||
|
"restrictedToMinimumLevel": "Debug" |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
"Name": "Console", |
||||
|
"Args": { |
||||
|
"restrictedToMinimumLevel": "Debug", |
||||
|
"outputTemplate": "{Timestamp:HH:mm:ss.fff zzz} [{Level}] {Message} {NewLine}{Exception}" |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
"Name": "MSSqlServer", |
||||
|
"Args": { |
||||
|
"connectionString": "Server=127.0.0.1;Database=Scp_WebApi;User ID=sa;Password=Microsoft2008;connection timeout=600;", |
||||
|
"tableName": "AppLogs", |
||||
|
"autoCreateSqlTable": true |
||||
|
} |
||||
|
} |
||||
|
], |
||||
|
"Enrich": [ "FromLogContext", "WithMachineName", "WithProcessId", "WithThreadId" ] |
||||
|
} |
||||
|
} |
@ -0,0 +1,2 @@ |
|||||
|
{ |
||||
|
} |
Loading…
Reference in new issue