{ "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": { //必须配置 //mysql数据库 //外网 "ConnectionString": "Server=81.71.148.57; Port=43306; Database=znyc_recruitment; Uid=znyc; Pwd=bIQISVSO; Charset=utf8mb4", //"ConnectionString": "Server=49.234.103.173; Port=43306; Database=Znyc_recruitment; Uid=Znyc; Pwd=987654321; Charset=utf8mb4", //主库, //mysql生产数据库 // "ConnectionString": "server=81.71.15.59;database=Znyc_recruitment;user=Znyc;CharSet=utf8mb4;password=#%sN3E32pa2hX*wr;port=43306;Allow User Variables=True;sslMode=None", //主库, "DatabaseType": "MySql" //数据库类型 } }, "DispatchingDb": { "MasterDB": { //mysql数据库 //"ConnectionString": "server=106.53.119.29;database=Znyc_dispatching;user=Znyc;CharSet=utf8;password=987654321;port=43306;Allow User Variables=True;sslMode=None;", //主库 //mysql生产数据库 //"ConnectionString": "server=81.71.15.59;database=Znyc_dispatching;user=Znyc;CharSet=utf8;password=#%sN3E32pa2hX*wr;port=43306;Allow User Variables=True;sslMode=None;", //主库 "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": "81.71.148.57:46379,password=dfeFEgeGH/,defaultdatabase=0", //Redis数据库 //"Redis_ConnectionString": "49.234.103.173:46379,password=123456789,defaultdatabase=0", //Redis生产数据库 // "Redis_ConnectionString": "81.71.15.59:46379,password=6zQ7j^gz,defaultdatabase=0", "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": "wx71f2b227f8eaf00a", "WxOpenAppSecret": "bf868056d4e58f4b2831ff74308120ac", "WxOpenToken": "rzC0pRTuBznwd3", "WxOpenEncodingAESKey": "Z9ifQKA8kvQjybOXuXl8I0r9cFHWJGwW2q5iE5e37AM", //公众号 "Token": "rzC0pRTuBznwd3", //说明:字符串内两侧#和{}符号为 Azure DevOps 默认的占位符格式,如果您有明文信息,请删除同占位符,修改整体字符串,不保留#和{},如:{"Token": "MyFullToken"} "EncodingAESKey": "VtEIJLTcbrkGT18EkevZzKIBYgqpURtxyH6w2iWR5eD", "WeixinAppId": "wx07c574aca93ae8d9", "WeixinAppSecret": "466411f6865d130f50cc48ae1566de99" }, //微信公众号 "WxOpen": { "WxOpenAppId": "wx71f2b227f8eaf00a", "WxOpenAppSecret": "bf868056d4e58f4b2831ff74308120ac", "WxOpenToken": "rzC0pRTuBznwd3", "WxOpenEncodingAESKey": "Z9ifQKA8kvQjybOXuXl8I0r9cFHWJGwW2q5iE5e37AM" }, "MongoConnection": { "ConnectionString": "mongodb://81.71.15.59:21111", "Database": "ZnycGPS", "IsSSL": true }, "CosOptions": { "secretId": "AKIDGMBk7D3cuvf8KFtGMBj00iALFsEJ7dsq", "secretKey": "i9IBn8Bzav0pMcbJkunPjmY3HsCF2Zom", "bucket": "znyc-images-1306377152", "region": "ap-nanjing", "allowPrefix": "*", "durationSeconds": 1800, "allowActions": [ "name/cos:PutObject", "name/cos:PostObject", "name/cos:InitiateMultipartUpload", "name/cos:ListMultipartUploads", "name/cos:ListParts", "name/cos:UploadPart", "name/cos:CompleteMultipartUpload" ] } }