2021-12-12 14:55:48 +08:00
|
|
|
|
{
|
|
|
|
|
"Logging": {
|
|
|
|
|
"Console": {
|
|
|
|
|
"IncludeScopes": true,
|
|
|
|
|
"LogLevel": {
|
2022-04-13 17:01:24 +08:00
|
|
|
|
"Default": "Information",
|
|
|
|
|
"Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationHandler": "Warning",
|
|
|
|
|
"Microsoft.AspNetCore.Cors.Infrastructure.CorsService": "Warning",
|
|
|
|
|
"Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager": "Warning",
|
|
|
|
|
"Microsoft.AspNetCore.Mvc": "Warning",
|
|
|
|
|
"Microsoft.AspNetCore.Routing.EndpointMiddleware": "Warning",
|
|
|
|
|
"Microsoft.AspNetCore.Hosting.Diagnostics": "Warning",
|
|
|
|
|
"Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware": "Warning",
|
|
|
|
|
"WalkingTec.Mvvm.Core.ActionLog": "Warning"
|
2021-12-12 14:55:48 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"Debug": {
|
|
|
|
|
"IncludeScopes": true,
|
|
|
|
|
"LogLevel": {
|
2022-04-13 17:01:24 +08:00
|
|
|
|
"Default": "Warning"
|
2021-12-12 14:55:48 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"WTM": {
|
|
|
|
|
"LogLevel": {
|
2022-04-13 17:01:24 +08:00
|
|
|
|
"Default": "Warning"
|
2021-12-12 14:55:48 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"Connections": [
|
|
|
|
|
{
|
|
|
|
|
"Key": "default",
|
|
|
|
|
"Value": "Data Source = iotgateway.db",
|
|
|
|
|
"DbContext": "DataContext",
|
|
|
|
|
"DBType": "SQLite" //DataBase, you can choose mysql,sqlserver,pgsql,sqlite,oracle
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"CookiePre": "IoTGateway", //cookie prefix
|
|
|
|
|
"IsQuickDebug": false, //is debug mode
|
|
|
|
|
"CorsOptions": {
|
|
|
|
|
"EnableAll": true,
|
|
|
|
|
"Policy": [
|
|
|
|
|
{
|
|
|
|
|
"Name": "Default",
|
|
|
|
|
"Domain": "http://localhost,https://localhost"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"ErrorHandler": "/_Framework/Error",
|
|
|
|
|
"Languages": "zh,en",
|
|
|
|
|
"BlazorMode": "server", // server or wasm
|
|
|
|
|
"UIOptions": {
|
|
|
|
|
"DataTable": {
|
|
|
|
|
"RPP": 100, //default records per page for all datagrid
|
|
|
|
|
"ShowPrint": true,
|
|
|
|
|
"ShowFilter": true
|
|
|
|
|
},
|
|
|
|
|
"ComboBox": {
|
|
|
|
|
"DefaultEnableSearch": true
|
|
|
|
|
},
|
|
|
|
|
"DateTime": {
|
|
|
|
|
"DefaultReadonly": true
|
|
|
|
|
},
|
|
|
|
|
"SearchPanel": {
|
|
|
|
|
"DefaultExpand": false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"PageMode": "Tab", //display mode,Single or Tab
|
|
|
|
|
"TabMode": "Simple", //Tab mode,Default or Simple
|
|
|
|
|
"IsFilePublic": false, //Can download or view attachment file without login
|
|
|
|
|
"FileUploadOptions": {
|
|
|
|
|
"UploadLimit": 2097152000,
|
|
|
|
|
"SaveFileMode": "local", //上传文件的保存方式,可选Database,local,oss
|
|
|
|
|
"Settings": {
|
|
|
|
|
"local": [
|
|
|
|
|
{
|
|
|
|
|
"GroupName": "driver",
|
|
|
|
|
"GroupLocation": ""
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"oss": [
|
|
|
|
|
{
|
|
|
|
|
"GroupName": "default",
|
|
|
|
|
"GroupLocation": "wtmimg",
|
|
|
|
|
"ServerUrl": "",
|
|
|
|
|
"Key": "",
|
|
|
|
|
"Secret": ""
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"JwtOptions": {
|
|
|
|
|
"Issuer": "http://localhost",
|
|
|
|
|
"Audience": "http://localhost",
|
2022-01-24 23:10:56 +08:00
|
|
|
|
"Expires": 360000,
|
2021-12-12 14:55:48 +08:00
|
|
|
|
"SecurityKey": "superSecretKey@345",
|
2022-01-24 23:10:56 +08:00
|
|
|
|
"RefreshTokenExpires": 8640000,
|
2021-12-12 14:55:48 +08:00
|
|
|
|
"LoginPath": "/_Framework/Redirect401"
|
|
|
|
|
},
|
|
|
|
|
"CookieOptions": {
|
|
|
|
|
"Issuer": "http://localhost",
|
|
|
|
|
"Audience": "http://localhost",
|
|
|
|
|
"Domain": "",
|
2022-01-24 23:10:56 +08:00
|
|
|
|
"Expires": 360000,
|
2021-12-12 14:55:48 +08:00
|
|
|
|
"SlidingExpiration": true,
|
|
|
|
|
"SecurityKey": "superSecretKey@345",
|
2022-01-24 23:10:56 +08:00
|
|
|
|
"RefreshTokenExpires": 8640000,
|
2021-12-12 14:55:48 +08:00
|
|
|
|
"LoginPath": "/Login/Login"
|
|
|
|
|
},
|
|
|
|
|
"Domains": {
|
|
|
|
|
"server": { //Blazor Server模式下页面调用接口的内网地址
|
|
|
|
|
"Address": "http://localhost:6652"
|
|
|
|
|
},
|
|
|
|
|
"serverpub": { //Blazor Server模式下页面调用接口的外网地址,可为空,为空表示api和页面部署在同一地址下
|
|
|
|
|
"Address": "http://localhost:6652"
|
|
|
|
|
},
|
|
|
|
|
"github": {
|
|
|
|
|
"Address": "https://api.github.com"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"AppSettings": {
|
|
|
|
|
"key1": "value1",
|
|
|
|
|
"key2": "value2"
|
|
|
|
|
}
|
|
|
|
|
}
|