HuanMengAdmin/admin-server/MiaoYu.Api.Admin/appsettings.json
2024-07-22 16:03:12 +08:00

71 lines
2.2 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": "JwtKeyName",
"JwtValidIssuer": "JwtKeyName",
"JwtIssuerSigningKey": "1CC76841-F25D-4389-89FE-0F9451163CF1"
},
//api 白名单
"ApiWhiteList": [
"/MonitorEFCore/",
"/job/",
"/health/check"
],
//是否运行 Quartz Task
"IsRunQuartzTask": true,
//是否拦截编辑 添加、修改、删除
"IsInterceptEdit": false,
//文件配置
"FileOptions": {
// 返回图片所在服务器的根路径
"ServerUrl": "http://localhost:5600/upload/",
// 文件保存路径设置 当前配置为 wwwroot/upload/ 下
"DirectoryUrl": "/upload/",
// 允许请求最大长度
"MaxRequestBodySize": "1gb",
// 允许文件最大长度 可代码动态设置 可选单位 B,KB,MB,GB
"MaxFileSizeLimit": "1gb",
// 设置允许上传文件格式 | 分割
"AllowExtensions": ".png|.jpg"
},
//腾讯云配置
"TencentCloud": {
"SecretId": "AKIDLbhdP0Vs57yd7QZWu8A2jFbno8JKBUp6",
"SecretKey": "MlP5tcUG6mdj7TwOpDWnZNFGIrJY8eH4",
"AppId": "1308826010",
"SMSCode": {
//请求方式
"ReqMethod": "POST",
//超时时间
"Timeout": 30,
//短信应用ID:
"SmsSdkAppId": "1400923253",
//签名
"SignName": "上海寰梦科技发展",
//模板编号
"TemplateId": "2209122"
},
"CosConfig": {
"AppId": "1308826010",
"SecretId": "AKIDLbhdP0Vs57yd7QZWu8A2jFbno8JKBUp6",
"SecretKey": "MlP5tcUG6mdj7TwOpDWnZNFGIrJY8eH4",
"DurationSecond": "300",
"Region": "ap-shanghai",
"Bucket": "miaoyu"
}
}
}