87 lines
2.7 KiB
JSON
87 lines
2.7 KiB
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Yarp": "Debug",
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"AllowedHosts": "*",
|
|
"NLog": {
|
|
"variables": {
|
|
"baseFileDir": "${basedir}/logs/",
|
|
"layout": "${longdate} | ${uppercase:${level}} | ${logger:shortName=false} | ${message}"
|
|
},
|
|
"extensions": [
|
|
{ "assembly": "NLog.Extensions.Logging" },
|
|
{ "assembly": "NLog.Web.AspNetCore" }
|
|
],
|
|
"throwConfigExceptions": true,
|
|
"targets": {
|
|
"async": true,
|
|
"logfile": {
|
|
"type": "File",
|
|
"fileName": "${basedir}/logs/${shortdate}.log",
|
|
"keepFileOpen": false,
|
|
"archiveEvery": "Day",
|
|
"archiveFileName": "${basedir}/logs/old/${shortdate}_{#}.log",
|
|
"archiveNumbering": "DateAndSequence",
|
|
"archiveAboveSize": "10240000",
|
|
"archiveDateFormat": "HH",
|
|
"maxArchiveFiles": "60",
|
|
"maxArchiveDays": "30"
|
|
},
|
|
"logconsole": {
|
|
"type": "ColoredConsole",
|
|
"layout": "${longdate} | ${uppercase:${level}} | ${logger:shortName=true} | ${message}"
|
|
}
|
|
},
|
|
"rules": [
|
|
{
|
|
"logger": "*",
|
|
"minLevel": "Trace",
|
|
"writeTo": "logconsole"
|
|
},
|
|
{
|
|
"logger": "*",
|
|
"minLevel": "Info",
|
|
"writeTo": "logfile"
|
|
}
|
|
]
|
|
},
|
|
"CodApp": "MP.RIOC",
|
|
"RouteMan": {
|
|
"MetricCalcIntervalSeconds": 20,
|
|
"MetricFlushIntervalSeconds": 60,
|
|
"DefaultWeightOld": 100,
|
|
"DefaultWeightNew": 0,
|
|
"DeleteExpiredMetrics": true
|
|
},
|
|
"ServerConf": {
|
|
"RoutePath": "/api/IOB",
|
|
"HttpVersion": "1.1",
|
|
"HttpVersionPolicy": "RequestVersionExact",
|
|
"OldApiUrl": "http://iis01.egalware.com/MP/IO/IOB/",
|
|
"NewApiUrl": "http://iis01.egalware.com/MP/IOC/api/IOB/",
|
|
"BaseUrlIoc": "/MP/RIOC/",
|
|
"MpIoNS": "MoonPro:SQL2016DEV:MoonPro",
|
|
"RedisBaseKey": "MP-IOC",
|
|
"RedisWeight": true,
|
|
"SafePages": "Index",
|
|
"redisLongTimeCache": 60,
|
|
"redisShortTimeCache": 30,
|
|
"useFactory": true
|
|
},
|
|
"RedisScripts": {
|
|
"Scripts": {
|
|
"Update": "RedisScript/RedisUpdateScript_v6.lua"
|
|
}
|
|
},
|
|
"ConnectionStrings": {
|
|
"MP.Data": "Server=SQL2016DEV;Database=MoonPro; User ID=sa;Password=keyhammer16; integrated security=False; App=MP.IOC;",
|
|
"MP.Utils": "Server=SQL2016DEV;Database=MoonPro_Utils; User ID=sa;Password=keyhammer16; integrated security=False; App=MP.RIOC;",
|
|
"Redis": "redis.ufficio:26379,serviceName=devel,DefaultDatabase=5,connectTimeout=5000,syncTimeout=5000,asyncTimeout=5000,abortConnect=false,ssl=false",
|
|
"RedisAdmin": "redis.ufficio:26379,serviceName=devel,DefaultDatabase=5,connectTimeout=5000,syncTimeout=5000,asyncTimeout=5000,abortConnect=false,ssl=false,allowAdmin=true"
|
|
}
|
|
}
|