116 lines
4.7 KiB
JSON
116 lines
4.7 KiB
JSON
|
|
{
|
|||
|
|
"NirvanaConnection": "server=localhost,4331;database=ybdevice;uid=fans_user;pwd=fans1qaz@WSX;",
|
|||
|
|
"Serilog": {
|
|||
|
|
"MinimumLevel": {
|
|||
|
|
"Default": "Information",
|
|||
|
|
"Override": {
|
|||
|
|
// 日志调用类命名空间如果以 Microsoft 开头,覆盖日志输出最小级别为 Information
|
|||
|
|
"System": "Warning", //简化日志
|
|||
|
|
"Microsoft.Hosting.Lifetime": "Information",
|
|||
|
|
"Microsoft": "Warning"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"JWTSettings": {
|
|||
|
|
"ValidateIssuerSigningKey": true, // 是否验证密钥,bool 类型,默认true
|
|||
|
|
"IssuerSigningKey": "ybhdmob_ybdevice_2021", // 密钥,string 类型,必须是复杂密钥,长度大于16
|
|||
|
|
"ValidateIssuer": true, // 是否验证签发方,bool 类型,默认true
|
|||
|
|
"ValidIssuer": "ybdevice", // 签发方,string 类型
|
|||
|
|
"ValidateAudience": true, // 是否验证签收方,bool 类型,默认true
|
|||
|
|
"ValidAudience": "ybdeviceapp", // 签收方,string 类型
|
|||
|
|
"ValidateLifetime": true, // 是否验证过期时间,bool 类型,默认true,建议true
|
|||
|
|
"ExpiredTime": 1440, // 过期时间,long 类型,单位分钟,默认20分钟
|
|||
|
|
"ClockSkew": 5, // 过期时间容错值,long 类型,单位秒,默认 5秒
|
|||
|
|
"Algorithm": "HS256" // 加密算法,string 类型,默认 SecurityAlgorithms.HmacSha256
|
|||
|
|
},
|
|||
|
|
"AppSettings": {
|
|||
|
|
"InjectSpecificationDocument": true //生产环境设置为false即可关闭文档
|
|||
|
|
},
|
|||
|
|
"DynamicApiControllerSettings": {
|
|||
|
|
"KeepName": true,
|
|||
|
|
"KeepVerb": false,
|
|||
|
|
"LowercaseRoute": true
|
|||
|
|
},
|
|||
|
|
"SpecificationDocumentSettings": {
|
|||
|
|
"DocumentTitle": "移帮设备平台接口",
|
|||
|
|
"RoutePrefix": "ybapi",
|
|||
|
|
"HideServers": true
|
|||
|
|
},
|
|||
|
|
"RabbitmqSetting": { //rabbitmq配置
|
|||
|
|
"HostName": "localhost",
|
|||
|
|
"Port": 5672,
|
|||
|
|
"UserName": "liuzl",
|
|||
|
|
"Password": "liuzl",
|
|||
|
|
"DBConnection": "server=localhost,4331;database=capsavedb;uid=fans_user;pwd=fans1qaz@WSX;" //数据保存库
|
|||
|
|
},
|
|||
|
|
"CustomSetting": {
|
|||
|
|
"LogUrl": "http://localhost:5341",
|
|||
|
|
"logfile": "e:/errlog/ybapi.ybhdmob.com", //日志文件路径
|
|||
|
|
"Version": "2.0.2.9", //版本号
|
|||
|
|
"NewPltUrl": "https://ybapi.pcxbc.com" //信平台地址
|
|||
|
|
},
|
|||
|
|
"SecureKey": "ybhdmob_xiaobai_2021",
|
|||
|
|
"RedisServer": "127.0.0.1",
|
|||
|
|
"DevMagWxOpenUserName": "gh_ee0ba95bbbfc", //每日一称设备管理username
|
|||
|
|
"APIURL": "https://ybapi.ybhdmob.com", //API域名
|
|||
|
|
"IsApiLog": true,
|
|||
|
|
"CDNURL": "https://ybdevice.ybhdmob.com", //图片CDN地址
|
|||
|
|
"APICDNURL": "https://ybapi.ybhdmob.com", //API图片CDN地址
|
|||
|
|
"WXURL": "http://ybwx.ybhdmob.com", //微信服务地址
|
|||
|
|
"TouTiaoSettiong": { //头条小程序配置
|
|||
|
|
"AppId": "tte74991f478708b7401"
|
|||
|
|
},
|
|||
|
|
"SenparcSetting": {
|
|||
|
|
"IsDebug": true,
|
|||
|
|
"DefaultCacheNamespace": "YBDeviceCache",
|
|||
|
|
//分布式缓存
|
|||
|
|
"Cache_Redis_Configuration": "localhost:6379" //Redis配置
|
|||
|
|
},
|
|||
|
|
//Senparc.Weixin SDK 设置
|
|||
|
|
"SenparcWeixinSetting": {
|
|||
|
|
//微信全局
|
|||
|
|
"IsDebug": true,
|
|||
|
|
//每日一称公众号
|
|||
|
|
"Token": "276ff8a8c7bc2cf6155199d6f6c96a58",
|
|||
|
|
"EncodingAESKey": "i0mm40pRqUh05vajRwbmPorCTR83ah5p4F8CXnH5GMv",
|
|||
|
|
"WeixinAppId": "wxda671f842dfda2b8",
|
|||
|
|
"WeixinAppSecret": "d22e0bd5bb6682777b8b4167763829c0",
|
|||
|
|
///小程序
|
|||
|
|
"WxOpenAppId": "wx3a4e5ef91a2bf14e", //每日一称设备管理
|
|||
|
|
"WxOpenAppSecret": "40b18dd1855d4cacfb9720cc879dc145",
|
|||
|
|
"WxOpenToken": "#{WxOpenToken}#",
|
|||
|
|
"WxOpenEncodingAESKey": "#{WxOpenEncodingAESKey}#",
|
|||
|
|
//移帮设备开放平台(测试)
|
|||
|
|
"Component_Appid": "wx623a8463a9d25f82",
|
|||
|
|
"Component_Secret": "ca800b847590301522f7a950509e1610",
|
|||
|
|
"Component_Token": "yibangfensitong",
|
|||
|
|
"Component_EncodingAESKey": "ehERVEw9sobcIZAjAYA0QZyQAYPjvP9ui5zMGOrL92r",
|
|||
|
|
"Items": {
|
|||
|
|
"childresultclient": { //儿童单机版测量小程序
|
|||
|
|
"WxOpenAppId": "wx3e50e84030fe0d1e",
|
|||
|
|
"WxOpenAppSecret": "48deeef5827ac51576013ae9637d8c78",
|
|||
|
|
"WxOpenToken": "#{WxOpenToken}#",
|
|||
|
|
"WxOpenEncodingAESKey": "#{WxOpenEncodingAESKey}#"
|
|||
|
|
},
|
|||
|
|
"lxbusinessclient": { //丽秀商户端
|
|||
|
|
"WxOpenAppId": "wx102c9e1add975a8a",
|
|||
|
|
"WxOpenAppSecret": "bcab8711d3f99828410445eebb48a102",
|
|||
|
|
"WxOpenToken": "#{WxOpenToken}#",
|
|||
|
|
"WxOpenEncodingAESKey": "#{WxOpenEncodingAESKey}#"
|
|||
|
|
},
|
|||
|
|
"xcjbusinessclient": { //小秤匠商户端
|
|||
|
|
"WxOpenAppId": "wx17f1e1e443120f68",
|
|||
|
|
"WxOpenAppSecret": "80ddaa73c1e56aa256e19ea8f5e73368",
|
|||
|
|
"WxOpenToken": "#{WxOpenToken}#",
|
|||
|
|
"WxOpenEncodingAESKey": "#{WxOpenEncodingAESKey}#"
|
|||
|
|
},
|
|||
|
|
"abbusinessclient": { //安邦商户端
|
|||
|
|
"WxOpenAppId": "wx0759e5f6214631aa",
|
|||
|
|
"WxOpenAppSecret": "9845ee5c824238722a0a2927d1601466",
|
|||
|
|
"WxOpenToken": "#{WxOpenToken}#",
|
|||
|
|
"WxOpenEncodingAESKey": "#{WxOpenEncodingAESKey}#"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|