MeiRiYiCheng_1_old/YBDevice.NWeb/appsettings.json

86 lines
3.4 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.

{
"AppSettings": {
"InjectSpecificationDocument": true //生产环境设置为false即可关闭文档
},
"DynamicApiControllerSettings": {
"KeepName": true,
"KeepVerb": false,
"LowercaseRoute": true
},
"LoginProvider": "CookieAndSession", //登录信息保存位置
"LoginProviderKey": "ybdevice_loginuserkey", //登录密钥
"NirvanaConnection": "server=localhost,4331;database=ybdevice;uid=fans_user;pwd=fans1qaz@WSX;",
"RedisServer": "127.0.0.1",
"SecureKey": "ybhdmob_xiaobai_2021",
"RabbitmqSetting": { //rabbitmq配置
"HostName": "localhost",
"Port": 5672,
"UserName": "liuzl",
"Password": "liuzl",
"DBConnection": "server=localhost,4331;database=capsavedb;uid=fans_user;pwd=fans1qaz@WSX;" //数据保存库
},
"SenparcSetting": {
"IsDebug": false,
"DefaultCacheNamespace": "YBDeviceCache",
//分布式缓存
"Cache_Redis_Configuration": "localhost:6379" //Redis配置
},
//Senparc.Weixin SDK 设置
"SenparcWeixinSetting": {
//微信全局
"IsDebug": false,
//移帮设备开放平台(测试)
"Component_Appid": "wx623a8463a9d25f82",
"Component_Secret": "ca800b847590301522f7a950509e1610",
"Component_Token": "yibangfensitong",
"Component_EncodingAESKey": "ehERVEw9sobcIZAjAYA0QZyQAYPjvP9ui5zMGOrL92r",
"Items": {
"ybdeviceweb": { //移帮设备管理后台,开放平台微信登录配置信息
"WeixinAppId": "wx3c43694cc7f4c2f2",
"WeixinAppSecret": "6bc3ac93b7d4cf0bbcef42c52372b939",
"Token": "",
"EncodingAESKey": ""
}
}
},
"Serilog": {
"MinimumLevel": {
"Default": "Warning",
"Override": {
"Microsoft": "Warning",
"Microsoft.EntityFrameworkCore": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
"System": "Warning",
"Serilog.AspNetCore.RequestLoggingMiddleware": "Warning"
}
}
},
"SpecificationDocumentSettings": {
"DocumentTitle": "移帮设备平台接口",
"RoutePrefix": "ybdevice"
},
"JWTSettings": {
"ValidateIssuerSigningKey": true, // 是否验证密钥bool 类型默认true
"IssuerSigningKey": "ybhdmob_YB.Device_2021", // 密钥string 类型必须是复杂密钥长度大于16
"ValidateIssuer": true, // 是否验证签发方bool 类型默认true
"ValidIssuer": "YB.Device", // 签发方string 类型
"ValidateAudience": true, // 是否验证签收方bool 类型默认true
"ValidAudience": "YB.Device.app", // 签收方string 类型
"ValidateLifetime": true, // 是否验证过期时间bool 类型默认true建议true
"ExpiredTime": 1440, // 过期时间long 类型单位分钟默认20分钟
"ClockSkew": 5, // 过期时间容错值long 类型,单位秒,默认 5秒
"Algorithm": "HS256" // 加密算法string 类型,默认 SecurityAlgorithms.HmacSha256
},
"CustomSetting": {
"LogUrl": "http://localhost:5341",
"Version": "1.0.5", //软件版本
"WXAPIURL": "http://ybwx.ybhdmob.com", //微信服务地址
"SoftDesc": "服务商专用", //软件描述
"SoftName": "智能秤管理平台", //软件名称
"CDNURL": "https://ybdevice.ybhdmob.com",
"copyright": "郑州品传科技", //版权所有
"logfile": "e:/errlog/ybdevice.ybhdmob.com", //日志文件路径
"APIURL": "https://ybapi.ybhdmob.com", //接口域名
"CookieName": "YB.Device.cookie" //cookie名称
}
}