mh_custom/wtmProject/bin/Debug/net6.0/appsettings.json

126 lines
3.3 KiB
JSON
Raw Permalink Normal View History

2024-05-28 14:49:22 +08:00
{
"Logging": {
"Console": {
"IncludeScopes": true,
"LogLevel": {
"Default": "Information"
}
},
"Debug": {
"IncludeScopes": true,
"LogLevel": {
"Default": "Information"
}
},
"WTM": {
"LogLevel": {
"Default": "Debug"
}
}
},
"Connections": [
{
"Key": "default",
2026-01-06 10:55:05 +08:00
"Value": "Server=121.41.2.71;Database=wtmProject_db;uid=sa;pwd=mhsafe!2021;", //Server=(localdb)\\mssqllocaldb;Database=wtmProject_db;Trusted_Connection=True;
2024-05-28 14:49:22 +08:00
"DbContext": "DataContext",
"DBType": "SqlServer" //DataBase, you can choose mysql,sqlserver,pgsql,sqlite,oracle
}
],
"CookiePre": "WTM", //cookie prefix
"IsQuickDebug": false, //is debug mode
"EnableTenant": false, //是否启动多租户
"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": 20, //default records per page for all datagrid
"ShowPrint": true,
"ShowFilter": true
},
"ComboBox": {
"DefaultEnableSearch": true
},
"DateTime": {
"DefaultReadonly": true
},
"SearchPanel": {
"DefaultExpand": true
}
},
"PageMode": "Tab", //display modeSingle or Tab
"TabMode": "Simple", //Tab modeDefault or Simple
"IsFilePublic": false, //Can download or view attachment file without login
"FileUploadOptions": {
"UploadLimit": 2097152000,
"SaveFileMode": "Database", //上传文件的保存方式可选Database,local,oss
"Settings": {
"local": [
{
"GroupName": "default",
"GroupLocation": ""
}
],
"oss": [
{
"GroupName": "default",
"GroupLocation": "wtmimg",
"ServerUrl": "",
"Key": "",
"Secret": ""
}
]
}
},
"JwtOptions": {
"Issuer": "http://localhost",
"Audience": "http://localhost",
"Expires": 3600,
"SecurityKey": "superSecretKey@345",
"RefreshTokenExpires": 86400,
"LoginPath": "/_Framework/Redirect401"
},
"CookieOptions": {
"Issuer": "http://localhost",
"Audience": "http://localhost",
"Domain": "",
"Expires": 3600,
"SlidingExpiration": true,
"SecurityKey": "superSecretKey@345",
"RefreshTokenExpires": 86400,
"LoginPath": "/Login/Login"
},
"Domains": {
"server": { //Blazor Server模式下页面调用接口的内网地址
"Address": "http://localhost:6051"
},
"serverpub": { //Blazor Server模式下页面调用接口的外网地址可为空为空表示api和页面部署在同一地址下
"Address": "http://localhost:6051"
},
"mainhost": { //用于指定单点登录的主站地址
//"Address": "https://localhost:5001"
},
"github": {
"Address": "https://api.github.com"
}
},
"AppSettings": {
"key1": "value1",
"key2": "value2"
},
"BootstrapBlazorOptions": {
"ToastDelay": 1000,
"MessageDelay": 1000,
"SwalDelay": 1000
}
}