MeiRiYiCheng_2_new/netcore/YB.DeviceV2/YB.DeviceV2.Web.Entry/appsettings.json

220 lines
8.2 KiB
JSON
Raw Permalink 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.

{
"SpecificationDocumentSettings": {
"DocumentTitle": "生产接口平台",
"DocExpansionState": "List",
"RoutePrefix": "ybapi",
"HideServers": true,
"GroupOpenApiInfos": [
{
"Group": "Default",
"Title": "移帮设备平台",
"Description": "",
"Visible": false,
"Version": "1.0.0"
},
{
"Group": "管理后台",
"Title": "管理后台",
"Description": "",
"Visible": true,
"Version": "1.0.0"
}
]
},
"JWTSettings": {
"ValidateIssuerSigningKey": true, // 是否验证密钥bool 类型默认true
"IssuerSigningKey": "3c1cbc3f546eda35168c3aa3cb91780fbe703f0996c6d123ea96dc85c70bbc0a", // 密钥string 类型必须是复杂密钥长度大于16
"ValidateIssuer": true, // 是否验证签发方bool 类型默认true
"ValidIssuer": "ybdeviceplatform", // 签发方string 类型
"ValidateAudience": true, // 是否验证签收方bool 类型默认true
"ValidAudience": "ybapp", // 签收方string 类型
"ValidateLifetime": true, // 是否验证过期时间bool 类型默认true建议true
"ExpiredTime": 60, // 过期时间long 类型单位分钟默认20分钟
"ClockSkew": 5, // 过期时间容错值long 类型单位秒默认5秒
"MiniIssuerSigningKey": "ce15ab36f0ad7db9a6aadb8cb3f2559d" //小程序端密钥
},
"AppSettings": {
"InjectSpecificationDocument": false
},
"HealthChecksUI": {
"HealthChecks": [
{
"Name": "healthz",
"Uri": "http://localhost:5566/healthz"
}
],
"EvaluationTimeinSeconds": 10,
"MinimumSecondsBetweenFailureNotifications": 60
},
"CorsAccessorSettings": {
"WithExposedHeaders": [ "access-token", "x-access-token", "Content-Disposition" ]
},
"Cache": {
"CacheType": "RedisCache", // RedisCache
"RedisConnectionString": "127.0.0.1:6379,password=,defaultDatabase=2",
"InstanceName": "PCKJ:YBDeviceV2Cache:Container:" //缓存前缀
},
"SnowId": {
"WorkerId": "1" // 取值范围0~63,默认1
},
"OAuth": {
"Wechat": {
"app_id": "wx2959fdd3abc05362",
"app_key": "829f65b2be0652bcd50ea8cb820fd7fa",
"redirect_uri": "http://127.0.0.1:56868/oauth/wechatcallback",
"scope": "snsapi_userinfo"
}
},
"UploadFile": {
// 阿里云OSS配置
"Aliyun": {
"path": "Dilon/Upload",
"maxSize": 1048576,
"contentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif", "image/bmp", "text/plain", "application/pdf", "application/msword", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.presentationml.presentation" ]
},
// 头像
"Avatar": {
"path": "Upload/Avatar",
"maxSize": 1048576,
"contentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif" ]
},
// 文档
"Document": {
"path": "Upload/Document",
"maxSize": 1048576,
"contentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif", "image/bmp", "text/plain", "application/pdf", "application/msword", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.presentationml.presentation" ]
},
// 商店
"Shop": {
"path": "Upload/Shop",
"maxSize": 1048576,
"contentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif" ]
},
// 默认
"Default": {
"path": "Upload/Default",
"maxSize": 1048576,
"contentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif", "image/bmp", "text/plain", "application/pdf", "application/msword", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.presentationml.presentation" ]
}
},
"OSSProvider": {
"Provider": "QCloud",
"Endpoint": "AppId",
"Region": "ap-chengdu",
"AccessKey": "A****************************z",
"SecretKey": "g6I***************la",
"IsEnableCache": true
},
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
// 日志调用类命名空间如果以 Microsoft 开头,覆盖日志输出最小级别为 Information
"System": "Warning", //简化日志
"Microsoft.Hosting.Lifetime": "Information",
"Microsoft": "Warning"
}
}
},
"CustomSetting": { //自定义配置
"Version": "1.6.0", //版本号
"WXAPIURL": "http://ybwxv2.ybhdmob.com", //微信服务地址
"ScanLoginURL": "https://ybdevice.ybhdmob.com", //扫码登录授权地址
"BusinessTagNoticeMPAppId": "wxda671f842dfda2b8" //商户标签通知默认使用的公众号,每日一称
},
// 日志配置
"LogSetting": {
"Type": "File", //日志类型,File-文件,Console-控制台,Seq-seq地址
"FilePath": "e:/errlog/ybdevicev2.ybhdmob.com" //日志文件路径
},
"RabbitmqSetting": { //rabbitmq配置
"Enabled": "true",
"GroupName": "yb.devicev2.queue",
"HostName": "localhost",
"Port": 5672,
"UserName": "liuzl",
"Password": "liuzl"
},
"DynamicApiControllerSettings": {
"KeepName": true,
"KeepVerb": false,
"LowercaseRoute": true,
"DefaultRoutePrefix": "api"
},
//微信配置
"SenparcSetting": {
"IsDebug": true,
"DefaultCacheNamespace": "YBDeviceV2Cache",
//分布式缓存
"Cache_Redis_Configuration": "localhost:6379" //Redis配置
},
//Senparc.Weixin SDK 设置
"SenparcWeixinSetting": {
"IsDebug": true,
///每日一称公众号
"Token": "276ff8a8c7bc2cf6155199d6f6c96a58",
"EncodingAESKey": "i0mm40pRqUh05vajRwbmPorCTR83ah5p4F8CXnH5GMv",
"WeixinAppId": "wxda671f842dfda2b8",
"WeixinAppSecret": "d22e0bd5bb6682777b8b4167763829c0",
///小程序
"WxOpenAppId": "wx6f48cc32c5c0a4a2", //MRYC设备管理
"WxOpenAppSecret": "39ee6d0810c8f24bfce0c984c0ab37ba",
"WxOpenToken": "#{WxOpenToken}#",
"WxOpenEncodingAESKey": "#{WxOpenEncodingAESKey}#",
//每日一称设备平台
"Component_Appid": "wxd1788d0fabf835f3",
"Component_Secret": "8ea9bf24d5f253f13602b76874478c5b",
"Component_Token": "yibangfensitong",
"Component_EncodingAESKey": "ehERVEw9sobcIZAjAYA0QZyQAYPjvP9ui5zMGOrL92r",
"Items": {
"bybusinessclient": { //贝雅商户端
"WxOpenAppId": "wxa63a297eb065418b",
"WxOpenAppSecret": "4a0dde0dcfde3784c0e7afd2256419f8",
"WxOpenToken": "#{WxOpenToken}#",
"WxOpenEncodingAESKey": "#{WxOpenEncodingAESKey}#"
},
"jtbusinessclient": { //巨天商户端
"WxOpenAppId": "wxd4892fc706682b09",
"WxOpenAppSecret": "1623802c63e49e01b4b18dbab27ba9a3",
"WxOpenToken": "#{WxOpenToken}#",
"WxOpenEncodingAESKey": "#{WxOpenEncodingAESKey}#"
},
"xcjbusinessclient": { //小秤匠商户端
"WxOpenAppId": "wx25a56b996cfbcae2",
"WxOpenAppSecret": "50ab99e49429de194d2140b16c1df726",
"WxOpenToken": "#{WxOpenToken}#",
"WxOpenEncodingAESKey": "#{WxOpenEncodingAESKey}#"
},
"xsxebusinessclient": { //享瘦小二商户端
"WxOpenAppId": "wx5d89154f0d0e516e",
"WxOpenAppSecret": "d9ca83d718c608d91687db9e590028f0",
"WxOpenToken": "#{WxOpenToken}#",
"WxOpenEncodingAESKey": "#{WxOpenEncodingAESKey}#"
},
"abbusinessclient": { //安邦设备管理
"WxOpenAppId": "wx0759e5f6214631aa",
"WxOpenAppSecret": "9845ee5c824238722a0a2927d1601466",
"WxOpenToken": "#{WxOpenToken}#",
"WxOpenEncodingAESKey": "#{WxOpenEncodingAESKey}#"
},
"tsbusinessclient": { //天晟设备管理
"WxOpenAppId": "wxe09a5644b33154ef",
"WxOpenAppSecret": "fd5ac87a477cb919ead6428223c58474",
"WxOpenToken": "#{WxOpenToken}#",
"WxOpenEncodingAESKey": "#{WxOpenEncodingAESKey}#"
},
"hcbusinessclient": { //花潮设备管理
"WxOpenAppId": "wx89c13105335565a1",
"WxOpenAppSecret": "673ea8031a78066cc857d7690f0fc0cd",
"WxOpenToken": "#{WxOpenToken}#",
"WxOpenEncodingAESKey": "#{WxOpenEncodingAESKey}#"
},
"sklmbusinessclient": { //瘦客辣妈设备管理
"WxOpenAppId": "wxc515cd6529e71fb2",
"WxOpenAppSecret": "68ec7393ebecf94350610156d0720d2c",
"WxOpenToken": "#{WxOpenToken}#",
"WxOpenEncodingAESKey": "#{WxOpenEncodingAESKey}#"
}
}
}
}