282 lines
7.3 KiB
JSON
282 lines
7.3 KiB
JSON
{
|
|
"Logging": {
|
|
"IncludeScopes": false,
|
|
"LogLevel": {
|
|
"Default": "Warning"
|
|
},
|
|
"LgbFile": {
|
|
"IncludeScopes": true,
|
|
"LogLevel": {
|
|
"Default": "Error"
|
|
},
|
|
"FileName": "Error\\Log.log"
|
|
}
|
|
},
|
|
"ConnectionStrings": {
|
|
"ba": "Data Source=.;Initial Catalog=BootstrapAdmin;User ID=sa;Password=sa"
|
|
},
|
|
"MongoDB": "BootstrapAdmin",
|
|
"DB": [
|
|
{
|
|
"Enabled": false
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"ProviderName": "Sqlite",
|
|
"ConnectionStrings": {
|
|
"ba": "Data Source=BootstrapAdmin.db;"
|
|
}
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"ProviderName": "MySql",
|
|
"ConnectionStrings": {
|
|
"ba": "Server=localhost;Database=BA;Uid=argozhang;Pwd=argo@163.com;SslMode=none;"
|
|
}
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"ProviderName": "Npgsql",
|
|
"ConnectionStrings": {
|
|
"ba": "Server=localhost;Database=BootstrapAdmin;User ID=argozhang;Password=argo@163.com;"
|
|
}
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Widget": "Bootstrap.DataAccess.MongoDB",
|
|
"ConnectionStrings": {
|
|
"ba": "mongodb://localhost:27017"
|
|
}
|
|
}
|
|
],
|
|
"SwaggerPathBase": "/BA",
|
|
"AllowOrigins": "http://localhost,http://argo.zylweb.cn",
|
|
"KeyPath": "..\\keys",
|
|
"ApplicationName": "__bd__",
|
|
"ApplicationDiscriminator": "BootstrapAdmin",
|
|
"DisableAutomaticKeyGeneration": false,
|
|
"TokenValidateOption": {
|
|
"Issuer": "BA",
|
|
"Audience": "api",
|
|
"Expires": 5,
|
|
"SecurityKey": "BootstrapAdmin-V1.1"
|
|
},
|
|
"LongbowCache": {
|
|
"Enabled": true,
|
|
"CorsItems": [
|
|
{
|
|
"Enabled": true,
|
|
"Key": "ba",
|
|
"Url": "CacheList.axd",
|
|
"Desc": "后台管理数据缓存接口",
|
|
"Self": true
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "App",
|
|
"Url": "../Client/CacheList.axd",
|
|
"Desc": "测试系统",
|
|
"Self": false
|
|
}
|
|
],
|
|
"CacheItems": [
|
|
{
|
|
"Enabled": true,
|
|
"Key": "RoleHelper-RetrieveRolesByUserName",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "指定用户角色数据缓存"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "RoleHelper-RetrieveRolesByUrl",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "通过菜单获得角色数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "BootstrapUser-RetrieveUsersByName",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "登录用户数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "BootstrapDict-RetrieveDicts",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "所有字典数据缓存"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "BootstrapMenu-RetrieveMenus",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "用户所有菜单数据缓存"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "GroupHelper-RetrieveGroupsByUserName",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "指定用户组数据缓存"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "UserHelper-RetrieveUsers",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "所有用户数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "UserHelper-RetrieveUsersByRoleId",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "通过角色ID获得所有用户数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "UserHelper-RetrieveUsersByGroupId",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "通过部门ID获得所有用户数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "UserHelper-RetrieveNewUsers",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "新用户数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "MenuHelper-RetrieveMenusByRoleId",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "通过角色ID获得所有菜单数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "RoleHelper-RetrieveRoles",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "所有角色数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "RoleHelper-RetrieveRolesByUserId",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "通过用户ID获得所有角色数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "RoleHelper-RetrieveRolesByMenuId",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "通过菜单ID获得所有角色数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "RoleHelper-RetrieveRolesByGroupId",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "通过部门ID获得所有角色数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "GroupHelper-RetrieveGroups",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "所有部门数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "GroupHelper-RetrieveGroupsByUserId",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "通过用户ID获得所有部门数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "GroupHelper-RetrieveGroupsByRoleId",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "通过角色ID获得所有部门数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "AppHelper-RetrieveAppsByRoleId",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "通过角色ID获得所有应用程序数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "LogHelper-RetrieveLogs",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "所有日志数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "DictHelper-RetrieveDictsCategory",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "字典分类数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "NotificationHelper-RetrieveNotifications",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "通知管理数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "ExceptionHelper-RetrieveExceptions",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "程序异常数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "MessageHelper-RetrieveMessages",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "站内消息数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "TaskHelper-RetrieveTasks",
|
|
"Interval": 600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "所有任务数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "WebApi",
|
|
"Interval": 21600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "WebApi 数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "Token",
|
|
"Interval": 21600000,
|
|
"SlidingExpiration": true,
|
|
"Desc": "Token 数据"
|
|
},
|
|
{
|
|
"Enabled": true,
|
|
"Key": "NotificationHelper-PullNotificationsInterval",
|
|
"Interval": 10000,
|
|
"SlidingExpiration": false,
|
|
"Desc": "全局消息提示轮询时间间隔"
|
|
}
|
|
]
|
|
}
|
|
}
|