101 lines
2.9 KiB
JSON
101 lines
2.9 KiB
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"InternalRequest": {
|
|
"SysRequestUrl": "http://sys",
|
|
"BasicRequestUrl": "http://basic",
|
|
"CanteenRequestUrl": "http://canteen",
|
|
"MessageRequestUrl": "http://message"
|
|
},
|
|
"DataProtectionOptions": {
|
|
"Enable": true,
|
|
"AppName": "yikatong"
|
|
},
|
|
"SqlSugarOptions": {
|
|
"DefaultConnectionString": "server=192.168.199.124;port=3306;userid=root;password=dlhis123;database=yikatong;charset=utf8mb4;",
|
|
"SlaveConnectionString": [],
|
|
"FaceConnectionString": "server=192.168.199.124;port=3306;userid=root;password=dlhis123;database=face;charset=utf8mb4;",
|
|
"IdentityConnectionString": "server=192.168.199.124;port=3306;userid=root;password=dlhis123;database=identity;charset=utf8mb4;",
|
|
"LogConnectionString": "server=192.168.199.124;port=3306;userid=root;password=dlhis123;database=log;charset=utf8mb4;",
|
|
"Timeout": 30,
|
|
"SlowSqlTime": 1,
|
|
"EnableSqlLog": true
|
|
},
|
|
"FaceUrlOptions": {
|
|
"Url": "https://yikatong.isawesome.cn/api/basic/gainfos/face?token=",
|
|
"Limit": 7200
|
|
},
|
|
"SwaggerOptions": {
|
|
"Enable": true,
|
|
"Authority": "http://identity.oauth.svc.cluster.local",
|
|
"ClientId": "4fb184324eac4180",
|
|
"ClientSecret": "8ac8f235152f1524",
|
|
"Scopes": {
|
|
"openid": "openid",
|
|
"profile": "profile",
|
|
"yikatong": "yikatong"
|
|
}
|
|
},
|
|
"IdentityServerOptions": {
|
|
"Authority": "http://identity.oauth.svc.cluster.local",
|
|
"RequireHttpsMetadata": false,
|
|
"Issuer": "identity.isawesome.cn",
|
|
"Audience": "",
|
|
"Pat": {
|
|
"Enable": false,
|
|
"Scheme": "token",
|
|
"ClientId": "reference",
|
|
"ClientSecret": "123456"
|
|
}
|
|
},
|
|
"JinkoOptions": {
|
|
"Jip": {
|
|
"BaseUrl": "http://jip.jinkosolar.com",
|
|
"Key": "FACE-CUOJG9N7",
|
|
"Secret": "130c2f2d-03a0-4720-8e25-538ffac7a7cb"
|
|
}
|
|
},
|
|
"RedisOptions": {
|
|
"ConnectionString": "192.168.199.30:30115,defaultDatabase=1,password=dlhis123"
|
|
},
|
|
"AllowedHosts": "*",
|
|
"Serilog": {
|
|
"MinimumLevel": {
|
|
"Default": "Information",
|
|
"Override": {
|
|
"System": "Warning",
|
|
"Microsoft": "Warning",
|
|
"Microsoft.Hosting.Lifetime": "Information",
|
|
"Hangfire": "Warning"
|
|
}
|
|
},
|
|
"WriteTo": [
|
|
{
|
|
"Name": "Async",
|
|
"Args": {
|
|
"configure": [
|
|
{
|
|
"Name": "Console",
|
|
"Args": {
|
|
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] [{SourceContext}] {Message:lj}{NewLine}{Exception}"
|
|
}
|
|
},
|
|
{
|
|
"Name": "MySQL",
|
|
"Args": {
|
|
"connectionString": "server=192.168.199.124;port=3306;userid=root;password=dlhis123;database=log;charset=utf8mb4;",
|
|
"tableName": "Logs",
|
|
"autoCreateSqlTable": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|