MeiRiYiCheng_1_old/YBDevice.Web/appsettings.json

98 lines
3.5 KiB
JSON
Raw Permalink Normal View History

2025-07-16 17:14:38 +08:00
{
"AppSettings": {
"InjectSpecificationDocument": false //生产环境设置为false即可关闭文档
},
"DynamicApiControllerSettings": {
"KeepName": true,
"KeepVerb": false,
"LowercaseRoute": true
},
"NirvanaConnection": "server=localhost,4331;database=ybdevice;uid=fans_user;pwd=fans1qaz@WSX;",
"RedisServer": "127.0.0.1",
"BodyApiSettings": { //八电极算法接口授权信息
"AccessKey": "hibh1so4e1q1qm7i",
"AccessSecret": "do8fg2o20fjd1lge",
"ApiUrl": "https://www.openapi.e-besthealth.com/bia/body120"
},
"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": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.EntityFrameworkCore": "Information",
"Microsoft.Hosting.Lifetime": "Information",
"System": "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.4", //软件版本
"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名称
},
"ProSettings": {
"NavTheme": "dark",
"HeaderHeight": 48,
"Layout": "side",
"ContentWidth": "Fluid",
"FixedHeader": true,
"FixSiderbar": true,
"Title": "Ant Design Pro",
"IconfontUrl": null,
"PrimaryColor": null,
"ColorWeak": false,
"SplitMenus": false,
"HeaderRender": true,
"FooterRender": true,
"MenuRender": true,
"MenuHeaderRender": true
}
}