{ "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名称 } }