You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
3.0 KiB
90 lines
3.0 KiB
{
|
|
"Logging": {
|
|
"IncludeScopes": false,
|
|
"Debug": {
|
|
"LogLevel": {
|
|
"Default": "Warning"
|
|
}
|
|
},
|
|
"Console": {
|
|
"LogLevel": {
|
|
"Default": "Warning"
|
|
}
|
|
}
|
|
},
|
|
"AllowedHosts": "*",
|
|
"Jwt": {
|
|
"Secret": "Y2F0Y2yhciUyMHdvbmclMFWfsaZlJTIwLm5ldA==", //密钥,目前暂时没有用
|
|
"Issuer": "ZnycTeach", //颁发者
|
|
"Audience": "api",
|
|
"Expiration": 120, //过期时长,分钟,
|
|
"refreshJwtTime": 240 //有效刷新时间,分钟
|
|
},
|
|
"DbConnections": {
|
|
"DefaultDb": {
|
|
"MasterDB": {
|
|
//测试环境调试配置,非必要请在本地进行开发调试
|
|
//"ConnectionString": "Server=106.52.55.123; Port=3306; Database=znyc_dispatching; Uid=guest; Pwd=4Y2e2WtekfDYWfT8; Charset=utf8mb4",
|
|
"ConnectionString": "Server=42.194.147.251;Port=43306;Database=znyc_dispatching;Uid=guest;Pwd=4Y2e2WtekfDYWfT8;Charset=utf8mb4",
|
|
"DatabaseType": "MySql" //MySql数据库类型
|
|
}
|
|
}
|
|
},
|
|
"AppSetting": {
|
|
"SoftName": "Znyc Framework",
|
|
"CertificatedCompany": "Znyc",
|
|
"ConStringEncrypt": "false",
|
|
"DefaultDataBase": "DefaultDb",
|
|
"IsDBReadWriteSeparate": false, //开启数据库读写分离
|
|
"QueryDBStrategy": "Random", //定义多个从数据库的访问策略
|
|
"LoginProvider": "Cookie",
|
|
"AppId": "system",
|
|
"AppSecret": "87135AB0160F706D8B47F06BDABA6FC6",
|
|
"AllowOrigins": "http://localhost,http://localhost:8080,http://localhost:9529,http://localhost:44304;http://localhost:9528",
|
|
"SessionTimeOut": "30", //session过期时长,分钟
|
|
"IsMultiTenant": false //开启多租户模式
|
|
},
|
|
"CacheProvider": {
|
|
"UseRedis": true,
|
|
// Redis数据库
|
|
//测试环境调试配置,非必要请在本地进行开发调试
|
|
//"Redis_ConnectionString": "106.52.55.123:6379,password=vtgA9HXFQQYA9g8Z"
|
|
"Redis_ConnectionString": "42.194.147.251:6379,password=vtgA9HXFQQYA9g8Z,defaultDatabase=6",
|
|
//"Redis_InstanceName": "",
|
|
"Cache_Memcached_Configuration": ""
|
|
},
|
|
"SwaggerDoc": {
|
|
"ContactName": "Znyc",
|
|
"Description": "api接口采用token+签名验证,在使用swagger测试接口时须先获取Token;",
|
|
"Title": "Znyc Admin API 文档"
|
|
},
|
|
"SenparcSetting": {
|
|
"IsDebug": true,
|
|
"DefaultCacheNamespace": "DefaultCache",
|
|
"SenparcUnionAgentKey": "#{SenparcUnionAgentKey}#"
|
|
},
|
|
//微信小程序
|
|
"SenparcWeixinSetting": {
|
|
"IsDebug": true,
|
|
"WxOpenAppId": "wxa883c42a8db02847",
|
|
"WxOpenAppSecret": "4b9bd0910aab6c7b5266b07d5c17dba6",
|
|
"WxOpenToken": "#{WxOpenToken}#",
|
|
"WxOpenEncodingAESKey": "#{WxOpenEncodingAESKey}#"
|
|
},
|
|
//微信公众号
|
|
"WxOpen": {
|
|
"WxOpenAppId": "wx71f2b227f8eaf00a",
|
|
"WxOpenAppSecret": "bf868056d4e58f4b2831ff74308120ac",
|
|
"WxOpenToken": "rzC0pRTuBznwd3",
|
|
"WxOpenEncodingAESKey": "Z9ifQKA8kvQjybOXuXl8I0r9cFHWJGwW2q5iE5e37AM"
|
|
},
|
|
"MongoConnection": {
|
|
"ConnectionString": "mongodb://42.194.147.251:27018",
|
|
"Database": "ZNYCGPS",
|
|
"IsSSL": true
|
|
},
|
|
"Hangfire": {
|
|
"Login": "znyc",
|
|
"Password": "znyc2021"
|
|
}
|
|
}
|