64 lines
2.0 KiB
JSON
64 lines
2.0 KiB
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft": "Warning",
|
|
"Microsoft.Hosting.Lifetime": "Information"
|
|
}
|
|
},
|
|
"AllowedHosts": "*",
|
|
// 如果发布后想要切换 配置环境 需要在 发布文件根目录的 web.config </aspNetCore> 此节点上方 添加 如下节点:
|
|
// <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Production" /><!--Development--></environmentVariables>
|
|
// 参考地址:https://www.lmlphp.com/user/16538/article/item/529521/
|
|
//
|
|
//=======================公共环境配置 =================================
|
|
// jwt 配置
|
|
"JwtTokenOptions": {
|
|
"JwtTokenKeyName": "Authorization",
|
|
"JwtValidAudience": "CloudGaming",
|
|
"JwtValidIssuer": "CloudGaming",
|
|
"JwtIssuerSigningKey": "1CC76841-F25D-4389-89FE-0F9451163CF1",
|
|
"JwtExpirationTime": 3000,
|
|
"JwtRefreshTime": 6000
|
|
},
|
|
//api 白名单
|
|
"ApiWhiteList": [
|
|
"/MonitorEFCore/",
|
|
"/job/",
|
|
"/health/check"
|
|
],
|
|
//是否运行 Quartz Task
|
|
"IsRunQuartzTask": true,
|
|
//是否拦截编辑 添加、修改、删除
|
|
"IsInterceptEdit": false,
|
|
//文件配置
|
|
"FileOptions": {
|
|
// 返回图片所在服务器的根路径
|
|
"ServerUrl": "http://localhost:5500/upload/",
|
|
// 文件保存路径设置 当前配置为 wwwroot/upload/ 下
|
|
"DirectoryUrl": "/upload/",
|
|
// 允许请求最大长度
|
|
"MaxRequestBodySize": "1gb",
|
|
// 允许文件最大长度 可代码动态设置 可选单位 B,KB,MB,GB
|
|
"MaxFileSizeLimit": "1gb",
|
|
// 设置允许上传文件格式 | 分割
|
|
"AllowExtensions": ".png|.jpg"
|
|
},
|
|
"AgileConfig": {
|
|
"appId": "CloudGaming",
|
|
"secret": "95BB717C61D1ECB0E9FB82C932CC77FF",
|
|
"nodes": "http://124.220.55.158:94", //多个节点使用逗号分隔
|
|
"url": "http://124.220.55.158:94",
|
|
"env": "PROD",
|
|
"UserName": "admin",
|
|
"Password": "dbt@com@1234"
|
|
},
|
|
//服务器配置
|
|
"Kestrel": {
|
|
"Endpoints": {
|
|
"Http": {
|
|
"Url": "http://*:80"
|
|
}
|
|
}
|
|
}
|
|
} |