Files
2026-11-06 19:25:36 +08:00

45 lines
1.6 KiB
JSON

{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"ConnectionStrings": {
"DefaultConnection": "Server=192.168.0.200;Port=3306;Database=mysql;Uid=root;Pwd=123456;",
},
// 登录认证:请求头使用 Authorization: Bearer <accessToken>。
"TokenAuth": {
// 闲置有效期(天):从签发或最近一次续期起计算。
"IdleDays": 7,
// 最长有效期(天):从签发起计算,到期必须重新登录。
"AbsoluteMaxDays": 30,
// 续期间隔(分钟):有效请求间隔达到此值才续期,不能超过最长有效期。
"RenewIntervalMinutes": 10,
// 本机认证缓存(秒):0 不缓存;跨实例撤销最多延迟此时长生效。
"CacheSeconds": 30,
// 有效会话上限:0 不限制;超限踢出最早会话,相同 deviceId 替换旧会话。
"MaxDevicesPerUser": 0,
// 开发固定令牌:仅 Development 环境生效,不受上述限制。
"DevelopmentToken": {
// 是否启用;appsettings.Development.json 中覆盖为 true。
"Enabled": false,
// 调试用 Bearer 令牌,不能为空,区分大小写。
"Token": "store-local-dev-7f2c9e4a6b814d38a5910e62c4f837bd",
// 调试身份的用户名,不能为空,建议填写已有账号。
"UserName": "18990991234"
}
},
"Hangfire": {
"Dashboard": {
"User": "admin",
"Pass": "1234560"
},
"ConnectionString": "Server=192.168.0.200;Port=3306;Database=goods_center;Uid=root;Pwd=123456;Allow User Variables=true"
},
"Plugins": {
"Path": "Plugins"
},
"AllowedHosts": "*"
}