|
|
@ -1,13 +1,11 @@ |
|
|
|
{ |
|
|
|
"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" |
|
|
|
"CorsOrigins": "https://scp.iacchina.net:9988", |
|
|
|
"RedirectAllowedUrls": "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;" |
|
|
|
"Default": "Server=127.0.0.1,13314;Database=Scp_WebApi;User ID=superadmin;Password=Microsoft@2021;connection timeout=600;" |
|
|
|
}, |
|
|
|
"AuthServer": { |
|
|
|
"Authority": "https://scp.iacchina.net:9988", |
|
|
@ -34,5 +32,68 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
"Serilog": { |
|
|
|
"Using": [ "Serilog.Sinks.File", "Serilog.Sinks.Async", "Serilog.Sinks.Console", "Serilog.Sinks.MSSqlServer" ], |
|
|
|
"MinimumLevel": { |
|
|
|
"Default": "Information", |
|
|
|
"Override": { |
|
|
|
"Microsoft": "Information", |
|
|
|
"Microsoft.EntityFrameworkCore": "Warning" |
|
|
|
} |
|
|
|
}, |
|
|
|
"WriteTo": [ |
|
|
|
{ |
|
|
|
"Name": "Async", |
|
|
|
"Args": { |
|
|
|
"configure": [ |
|
|
|
{ |
|
|
|
"Name": "File", |
|
|
|
"Args": { |
|
|
|
"path": "Logs\\log.txt", |
|
|
|
"rollingInterval": "Day", |
|
|
|
"restrictedToMinimumLevel": "Information" |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
"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" ] |
|
|
|
}, |
|
|
|
"AsnOptions": { |
|
|
|
"Active": true, |
|
|
|
"PeriodSeconds": 300, |
|
|
|
"RetryTimes": 3, |
|
|
|
"BatchSize": 100, |
|
|
|
"MaxCount": 100, |
|
|
|
"Receiver": "IACNA_ID", |
|
|
|
"Sites": [ |
|
|
|
{ |
|
|
|
"Code": "T8", |
|
|
|
"MinUid": 200 |
|
|
|
}, |
|
|
|
{ |
|
|
|
"Code": "T5", |
|
|
|
"MinUid": 100 |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
|
|
|
|
"AlwaysAllowAuthorization": false |
|
|
|
} |