You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

249 lines
8.1 KiB

{
"App": {
"SelfUrl": "http://localhost:44344",
"CorsOrigins": "https://*.abc.com,http://localhost:9528,http://192.168.0.203:8088,http://localhost:44344/,http://localhost:44344/*,http://localhost:44344/swagger/index.html"
},
"ConfigDic": {
"CurrentVersion": "PaiGe",
"TransferFileCountPerTime": 1, //10
"ParseAssemblyCycleCount": 4,
"MsgTransmessionTimer": {
"IsStop": false,
"IntervalInSeconds": 1
},
"RefreshCacheIntervalInMinutes": 10,
/*
"MsgTransmissionWorker": {
"IsStop": true,
"TakeRecordCount": 1,
"IntervalInMinutes": 1
},
"MsgTransmissionWorkerTianHe": {
"IsStop": true,
"TakeRecordCount": 1,
"IntervalInMinutes": 60
},
"BatchParseWorker": {
"IsStop": true,
"TakeRecordCount": 1,
"FilterBeginDate": "2021-09-01 00:00:00",
"FilterEndDate": "2021-09-30 23:59:59",
"IntervalInMinutes": 60
},
"AssemblySyncWorker": {
"IsStop": true,
"TakeRecordCount": 1,
"IntervalInMinutes": 60
},
*/
"FileFilterKeyword": "jit*.*",
"PathReadType": "绝对",
/*
"PathRead": {
"接收目录": "D:\\~LYF\\~源码\\通用FIS\\src\\Modules\\新版JIT或JIS系统服务端\\src\\WY.NewJit.Job.ConsoleApp\\bin\\Debug\\net5.0\\JIS_RCV",
"工作目录": "D:\\~LYF\\~源码\\通用FIS\\src\\Modules\\新版JIT或JIS系统服务端\\src\\WY.NewJit.Job.ConsoleApp\\bin\\Debug\\net5.0\\JIS_WORK",
"备份目录": "D:\\~LYF\\~源码\\通用FIS\\src\\Modules\\新版JIT或JIS系统服务端\\src\\WY.NewJit.Job.ConsoleApp\\bin\\Debug\\net5.0\\JIS_BAK",
"错误目录": "D:\\~LYF\\~源码\\通用FIS\\src\\Modules\\新版JIT或JIS系统服务端\\src\\WY.NewJit.Job.ConsoleApp\\bin\\Debug\\net5.0\\JIS_ERR"
},
*/
"PathRead": {
"接收目录": ".\\JIS_RCV",
"工作目录": ".\\JIS_WORK",
"备份目录": ".\\JIS_BAK",
"错误目录": ".\\JIS_ERR",
"等待目录": ".\\JIS_WAIT"
}
},
"ConnectionStrings": {
/*"Default": "Server=192.168.0.140;Database=NewJitPG_TEST_0114;uid=sa;pwd=Microsoft2008;",*/
//"Default": "Server=192.168.0.140;Database=NewJitPG_TEST_20230703;uid=sa;pwd=Microsoft2008;",
/*"Default": "Server=192.168.0.216;Database=NewJitPG;uid=sa;pwd=ChangkeTec@2021;",*/
"Default": "Server=dev.ccwin-in.com,6208;Database=NewJitPG_HQ;uid=sa;pwd=ChangkeTec@2021;",
"ABP": "Server=dev.ccwin-in.com,6208;Database=ABP;User ID=sa;Password=ChangkeTec@2021;",
"WMS": "Server=dev.ccwin-in.com,6208;Database=CPAT_WMS;User ID=sa;Password=ChangkeTec@2021;"
},
/*
"ConnectionStrings": {
"Default": "Server=192.168.0.213;Database=NewJitPG;User ID=sa;Password=Microsoft@2021;",
"ABP": "Server=192.168.0.213;Database=ABP;User ID=sa;Password=Microsoft@2021;",
"WMS": "Server=192.168.0.217;Database=PG_WMS;User ID=sa;Password=ChangkeTec@2021;"
},
*/
/*
"ConnectionStrings": {
"Default": "Server=192.168.0.213;Database=NewJit;User ID=sa;Password=Microsoft@2021;",
"SettleAccountService": "Server=192.168.0.213;Database=SettleAccountService;user id=sa;password=Microsoft@2021;",
"TianHe": "Server=192.168.0.213;Database=TianHe;User ID=sa;Password=Microsoft@2021;"
},
*/
"AuthServer": {
"Authority": "http://localhost:44344",
"RequireHttpsMetadata": "false",
"AlwaysAllowAuthorization": false
},
"StringEncryption": {
"DefaultPassPhrase": "RclFlAyi7ZW70c1N"
},
"IdentityClients": {
"Default": {
"GrantType": "client_credentials",
"ClientId": "business-app",
"ClientSecret": "1q2w3e*",
"Authority": "http://192.168.0.203:8066",
"Scope": "InternalGateway IdentityService SettleAccount"
}
},
"Serilog": {
//Verbose->Debug->Information->Warning->Error->Fatal
"Using": [
"Serilog.Sinks.RollingFile",
"Serilog.Sinks.Console",
"Serilog.Filters.Expressions"
],
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Error", //MicrosoftInformation
"System": "Error", //SystemInformation,
"Microsoft.AspNetCore": "Error",
"Microsoft.AspNetCore.Cors.Infrastructure.CorsService": "Error",
"Microsoft.AspNetCore.Mvc": "Error",
"Microsoft.AspNetCore.Hosting": "Error"
}
},
"WriteTo": [
{
"Name": "Console",
"Args": {
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss,fff} [{Level}] [{SourceContext}] {Message:lj}{NewLine}{Exception}"
}
},
{
"Name": "RollingFile",
"Args": {
"pathFormat": "Logs\\ALL\\{Date}.log", //
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss,fff} [{Level:u3}] {Message:lj}{NewLine}{Exception}", //
"fileSizeLimitBytes": 10000000, //
"retainedFileCountLimit": 30, //
//"formatter": "Serilog.Formatting.Json.JsonFormatter, Serilog", //
"buffered": false, //
"shared": true //(buffered:true,)
}
},
{
"Name": "Logger",
"Args": {
"configureLogger": {
"Filter": [
{
"Name": "ByIncludingOnly",
"Args": {
"expression": "@Level = 'Debug'"
}
}
],
"WriteTo": [
{
"Name": "RollingFile",
"Args": {
"pathFormat": "Logs\\Debug\\{Date}.log",
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss,fff} DEBUG {ClassName}:0 - [{Version}] [{HttpRequestIP}] [{AppName}] {Message:lj}{NewLine}{Exception}"
}
}
]
}
}
},
{
"Name": "Logger",
"Args": {
"configureLogger": {
"Filter": [
{
"Name": "ByIncludingOnly",
"Args": {
"expression": "@Level = 'Information'"
}
}
],
"WriteTo": [
{
"Name": "RollingFile",
"Args": {
"pathFormat": "Logs\\Info\\{Date}.log",
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss,fff} INFO {ClassName}:0 - [{Version}] [{HttpRequestIP}] [{AppName}] {Message:lj}{NewLine}{Exception}"
}
}
]
}
}
},
{
"Name": "Logger",
"Args": {
"configureLogger": {
"Filter": [
{
"Name": "ByIncludingOnly",
"Args": {
"expression": "@Level = 'Error'"
}
}
],
"WriteTo": [
{
"Name": "RollingFile",
"Args": {
"pathFormat": "Logs\\Error\\{Date}.log",
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss,fff} ERROR {ClassName}:0 - [{Version}] [{HttpRequestIP}] [{AppName}] {Message:lj}{NewLine}{Exception}"
}
}
]
}
}
},
{
"Name": "Logger",
"Args": {
"configureLogger": {
"Filter": [
{
"Name": "ByIncludingOnly",
"Args": {
"expression": "@Level = 'Warning'"
}
}
],
"WriteTo": [
{
"Name": "RollingFile",
"Args": {
"pathFormat": "Logs\\Warning\\{Date}.log",
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss,fff} WARNING {ClassName}:0 - [{Version}] [{HttpRequestIP}] [{AppName}] {Message:lj}{NewLine}{Exception}"
}
}
]
}
}
}
],
"Enrich": [
"FromLogContext",
"WithMachineName"
],
"Properties": {
"MachineName": "%COMPUTERNAME%"
}
}
}