Files
kunshan-bzfm-mes-backend/DOAN.Admin.WebApi/appsettings.json
qianhao.xu f4f612a39e Qc 之前
2024-12-17 18:31:31 +08:00

92 lines
2.7 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"JwtSettings": {
"Issuer": "DOANAdmin.NET", //即token的签发者。
"Audience": "DOANAdmin.NET", //指该token是服务于哪个群体的群体范围
"SecretKey": "SecretKey-DOANADMIN.NET-202411281883838",
"Expire": 600000, //jwt登录过期时间
"RefreshTokenTime": 6000, //分钟
"TokenType": "Bearer"
},
"InjectClass": [ "DOAN.Repository", "DOAN.Service", "DOAN.Tasks", "DOAN.ServiceCore" ], //自动注入类
"InitDb": false, //(新建项目的时候需要)是否初始化db
"DemoMode": false, //是否演示模式
"SingleLogin": false, //是否允许多设备/浏览器登录
"workId": 1, //雪花id唯一数字
"sqlExecutionTime": 5, //Sql执行时间超过多少秒记录日志并警报
//阿里云存储配置
"ALIYUN_OSS": {
"REGIONID": "", //egcn-hangzhou
"KEY": "XX",
"SECRET": "XX",
"bucketName": "bucketName",
"domainUrl": "http://xxx.xxx.com", //访问资源域名
"maxSize": 100 //上传文件大小限制 100M
},
//企业微信通知配置
"WxCorp": {
"AgentID": "",
"CorpID": "",
"CorpSecret": "",
"SendUser": "@all"
},
//微信公众号设置
"WxOpen": {
"AppID": "",
"AppSecret": ""
},
//邮箱配置信息
"MailOptions": [
{
//发件人名称(请保证数组里面唯一)
"FromName": "system",
//发送人邮箱
"FromEmail": "", //egxxxx@qq.com
//发送人邮箱密码
"Password": "",
//协议
"Smtp": "smtp.qq.com",
"Port": 587,
"Signature": "系统邮件,请勿回复!",
"UseSsl": true
}
],
//redis服务配置
"RedisServer": {
"open": 0, //是否启用redis
"dbCache": false, //数据库是否使用Redis缓存如果启用open要为1
"Cache": "127.0.0.1:6379,defaultDatabase=0,poolsize=50,ssl=false,writeBuffer=10240,prefix=cache:",
"Session": "127.0.0.1:6379,defaultDatabase=0,poolsize=50,ssl=false,writeBuffer=10240,prefix=session:"
},
//验证码配置
"CaptchaOptions": {
"IgnoreCase": true // 比较时是否忽略大小写
},
//代码生成配置
"CodeGen": {
//uniapp 版本号2/3(vue版本号)
"uniappVersion": 3,
//是否显示移动端代码生成
"showApp": true,
//自动去除表前缀
"autoPre": true,
//默认生成业务模块名
"moduleName": "BZFM",
"author": "mes",
"tablePrefix": "sys_", //"表前缀(生成类名不会包含表前缀,多个用逗号分隔)",
"vuePath": "", //前端代码存储路径egD:\Work\DOANAdmin-Vue3
"uniappPath": "D:\\Work" //h5前端代码存储路径
}
}