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.
zongzhilinglan/GDZZ.Web.Core/applicationconfig.json

275 lines
12 KiB

{
//如果前端不代理的话又是axios请求的话需要添加以下代码
"CorsAccessorSettings": {
"WithExposedHeaders": [ "Content-Disposition" ]
},
//动态api配置
//"DynamicApiControllerSettings": {
// "DefaultRoutePrefix": "api666" //默认路由前缀默认api但是如果action上面写死route的话 就无效了特性的优先级最高
//},
"SystemSettings": {
"SuperAdminViewAllData": true, //超管是否可以查看所有租户的数据
"IsGlobalRequestLog": false //是否开启全局请求日志
},
"AppSettings": {
"InjectSpecificationDocument": true //是否开启swagger
},
"SpecificationDocumentSettings": {
"DocumentTitle": "GDZZ",
"DocExpansionState": "None",
"GroupOpenApiInfos": [
{
"Group": "Default",
"Title": "GDZZ.NET通用权限管理平台",
2 years ago
"Description": "前后端分离架构,开箱即用,紧随前沿技术。",
"Version": "1.0.0"
},
{
"Group": "FlowCenter",
"Title": "流程中心",
2 years ago
"Description": "流程中心模块或插件。",
"Version": "1.0.0"
},
{
"Group": "Application",
"Title": "业务模块",
"Description": "独立业务模块",
"Version": "1.0.1"
}
]
},
"JWTSettings": {
"ValidateIssuerSigningKey": true, // 是否验证密钥bool 类型默认true
"IssuerSigningKey": "3c1cbc3f546eda35168c3aa3cb91780fbe703f0996c6d123ea96dc85c70bbc0a", // 密钥string 类型必须是复杂密钥长度大于16
"ValidateIssuer": true, // 是否验证签发方bool 类型默认true
"ValidIssuer": "GDZZ", // 签发方string 类型
"ValidateAudience": true, // 是否验证签收方bool 类型默认true
"ValidAudience": "GDZZ", // 签收方string 类型
"ValidateLifetime": true, // 是否验证过期时间bool 类型默认true建议true
"ExpiredTime": 1440, // 过期时间long 类型单位分钟默认20分钟
"ClockSkew": 5 // 过期时间容错值long 类型单位秒默认5秒
},
"Cache": {
"CacheType": "MemoryCache", // RedisCache
"RedisConnectionString": "106.55.234.178:6379,password=zongzhi@2022,defaultDatabase=2"
},
"SnowId": {
"WorkerId": "1" // 取值范围0~63,默认1
},
"OAuth": {
"Wechat": {
"app_id": "wx422d9d8b4939f68c",
"app_key": "3d9a78ee2808836e63311cc5fa1ee317",
"redirect_uri": "http://127.0.0.1:56868/oauth/wechatcallback",
"scope": "snsapi_userinfo"
}
},
2 years ago
//"SenparcWeixinSetting": {
// //注意:所有的字符串值都可能被用于字典索引,因此请勿留空字符串(但可以根据需要,删除对应的整条设置)!
// //微信全局
// "IsDebug": true,
// //以下不使用的参数可以删除key 修改后将会失效
// //公众号
// "Token": "微信支付不需要",
// "EncodingAESKey": "微信支付不需要",
// "WeixinAppId": "wx422d9d8b4939f68c",
// "WeixinAppSecret": "3d9a78ee2808836e63311cc5fa1ee317",
// "WxOpenAppId": "wx422d9d8b4939f68c",
// "WxOpenAppSecret": "3d9a78ee2808836e63311cc5fa1ee317",
// "WxOpenToken": "#{WxOpenToken}#",
// "WxOpenEncodingAESKey": "#{WxOpenEncodingAESKey}#",
// "TenPayV3_AppId": "wx422d9d8b4939f68c",
// "TenPayV3_AppSecret": "3d9a78ee2808836e63311cc5fa1ee317",
// "TenPayV3_MchId": "1640363167",
// //"TenPayV3_Key": "ZZRZJKvAstv4SJapStuyHhCOzqrrjSUD",
// "TenPayV3_TenpayNotify": "https://admin.gdzongzhi.com/Mini/v1/NotifyUrl",
// "TenPayV3_WxOpenTenpayNotify": "https://admin.gdzongzhi.com/Mini/v1/NotifyUrl",
// //微信支付V3新版
// "TenPayV3_SubAppId": "",
// "TenPayV3_SubAppSecret": "",
// "TenPayV3_SubMchId": "", //子商户,没有可留空
// "TenPayV3_Key": "ZzRZJKvAstv4SJapStuyHhCOzqrrjSUD",
// "TenPayV3_CertPath": "可留空", //支付证书物理路径D:\\cert\\apiclient_cert.p12
// "TenPayV3_CertSecret": "可留空", //支付证书密码(原始密码和 MchId 相同)
// "TenPayV3_PrivateKey": "MIIExxxxxxxxxxxxxxxxx", //(新)证书私钥
// "TenPayV3_SerialNumber": "5Bxxxxxxxxxxxxxxxxxxxxxx", //证书序列号
// "TenPayV3_ApiV3Key": "xxxxxxxxxxxxxxxxxxxxxxxx" //APIv3 密钥
// //如果不设置TenPayV3_WxOpenTenpayNotify默认在 TenPayV3_TenpayNotify 的值最后加上 "WxOpen"
//},
//Senparc.Weixin SDK 设置
"SenparcWeixinSetting": {
2 years ago
//以下为 Senparc.Weixin 的 SenparcWeixinSetting 微信配置
//注意:所有的字符串值都可能被用于字典索引,因此请勿留空字符串(但可以根据需要,删除对应的整条设置)!
//微信全局
"IsDebug": true,
//以下不使用的参数可以删除key 修改后将会失效
//公众号
2 years ago
"Token": "#{Token}#", //说明:字符串内两侧#和{}符号为 Azure DevOps 默认的占位符格式,如果您有明文信息,请删除同占位符,修改整体字符串,不保留#和{},如:{"Token": "MyFullToken"}
"EncodingAESKey": "#{EncodingAESKey}#",
"WeixinAppId": "#{WeixinAppId}#",
"WeixinAppSecret": "#{WeixinAppSecret}#",
//小程序
"WxOpenAppId": "wx422d9d8b4939f68c",
"WxOpenAppSecret": "3d9a78ee2808836e63311cc5fa1ee317",
"WxOpenToken": "#{WxOpenToken}#",
"WxOpenEncodingAESKey": "#{WxOpenEncodingAESKey}#",
//企业微信
"WeixinCorpId": "#{WeixinCorpId}#",
"WeixinCorpAgentId": "#{WeixinCorpAgentId}#",
"WeixinCorpSecret": "#{WeixinCorpSecret}#",
"WeixinCorpToken": "#{WeixinCorpToken}#",
"WeixinCorpEncodingAESKey": "#{WeixinCorpEncodingAESKey}#",
2 years ago
//微信支付
//微信支付V2旧版
"WeixinPay_PartnerId": "#{WeixinPay_PartnerId}#",
"WeixinPay_Key": "#{WeixinPay_Key}#",
"WeixinPay_AppId": "#{WeixinPay_AppId}#",
"WeixinPay_AppKey": "#{WeixinPay_AppKey}#",
"WeixinPay_TenpayNotify": "#{WeixinPay_TenpayNotify}#",
//微信支付V3
"TenPayV3_AppId": "wx422d9d8b4939f68c",
"TenPayV3_AppSecret": "3d9a78ee2808836e63311cc5fa1ee317",
2 years ago
"TenPayV3_SubAppId": "#{TenPayV3_SubAppId}#",
"TenPayV3_SubAppSecret": "#{TenPayV3_SubAppSecret}#",
"TenPayV3_MchId": "1640363167",
"TenPayV3_SubMchId": "#{TenPayV3_SubMchId}#", //子商户,没有可留空
"TenPayV3_Key": "ZZRZJKvAstv4SJapStuyHhCOzqrrjSUD",
/* APIv3 使
* 1D:\\cert\\apiclient_cert.p12
* 2~/App_Data/cert/apiclient_cert.p12 App_Data
* https://pay.weixin.qq.com/index.php/account/api_cert
*/
"TenPayV3_CertPath": "#{TenPayV3_CertPath}#", //V3 API 可不使用)证书路径
"TenPayV3_CertSecret": "#{TenPayV3_CertSecret}#", //V3 API 可不使用)支付证书密码(原始密码和 MchId 相同)
"TenPayV3_TenpayNotify": "https://admin.gdzongzhi.com/api/Mini/NotifyUrl", // http://YourDomainName/TenpayApiV3/PayNotifyUrl
2 years ago
/*
* 1
* 2~/App_Data/cert/apiclient_key.pem App_Data
*/
"TenPayV3_PrivateKey": "#{TenPayV3_PrivateKey}#", //(新)证书私钥
"TenPayV3_SerialNumber": "#{TenPayV3_SerialNumber}#", //(新)证书序列号
"TenPayV3_ApiV3Key": "#{TenPayV3_APIv3Key}#", //APIv3 密钥
//如果不设置TenPayV3_WxOpenTenpayNotify默认在 TenPayV3_TenpayNotify 的值最后加上 "WxOpen"
"TenPayV3_WxOpenTenpayNotify": "https://admin.gdzongzhi.com/api/Mini/NotifyUrlWxOpen", //http://YourDomainName/TenpayV3/PayNotifyUrlWxOpen
2 years ago
//开放平台
"Component_Appid": "#{Component_Appid}#",
"Component_Secret": "#{Component_Secret}#",
"Component_Token": "#{Component_Token}#",
"Component_EncodingAESKey": "#{Component_EncodingAESKey}#",
//扩展及代理参数
"AgentUrl": "#{AgentUrl}#",
"AgentToken": "#{AgentToken}#",
"SenparcWechatAgentKey": "#{SenparcWechatAgentKey}#",
//以下Items中的内容根据实际情况使用
//Items 下面可以添加任意多个公众号、小程序、企业微信、微信支付V2/V3、开放平台的信息
"Items": {
//每一组账号格式参考上一级节点的对应内容只需要添加需要的参数即可注意Key 不能重复),如:
"第二个公众号": {
//公众号
"Token": "#{Token2}#",
"EncodingAESKey": "#{EncodingAESKey2}#",
"WeixinAppId": "#{WeixinAppId2}#",
"WeixinAppSecret": "#{WeixinAppSecret2}#"
},
"第三个公众号": {
//公众号
"Token": "#{Token3}#",
"EncodingAESKey": "#{EncodingAESKey3}#",
"WeixinAppId": "#{WeixinAppId3}#",
"WeixinAppSecret": "#{WeixinAppSecret3}#"
},
"第二个小程序": {
//小程序
"WxOpenAppId": "#{WxOpenAppId2}#",
"WxOpenAppSecret": "#{WxOpenAppSecret2}#",
"WxOpenToken": "#{WxOpenToken2}#",
"WxOpenEncodingAESKey": "#{WxOpenEncodingAESKey2}#"
},
"第四个公众号+对应小程序+对应微信支付": {
//公众号
"Token": "#{Token4}#",
"EncodingAESKey": "#{EncodingAESKey4}#",
"WeixinAppId": "#{WeixinAppId4}#",
"WeixinAppSecret": "#{WeixinAppSecret4}#",
//小程序
"WxOpenAppId": "#{WxOpenAppId3}#",
"WxOpenAppSecret": "#{WxOpenAppSecret3}#",
"WxOpenToken": "#{WxOpenToken3}#",
"WxOpenEncodingAESKey": "#{WxOpenEncodingAESKey3}#"
2 years ago
//微信支付V3新版
},
"企业微信审批": {
"WeixinCorpId": "#{WeixinCorpId4}#",
"WeixinCorpAgentId": "#{WeixinCorpAgentId4}#",
"WeixinCorpSecret": "#{WeixinCorpSecret4}#",
"WeixinCorpToken": "#{WeixinCorpToken4}#",
"WeixinCorpEncodingAESKey": "#{WeixinCorpEncodingAESKey4}#"
}
//更多,任意数量、任意模块、任意组合...
}
},
2 years ago
"UploadFile": {
// 阿里云OSS配置
"Aliyun": {
"path": "GDZZ/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" ]
},
// 富文本
"Editor": {
"path": "Upload/Editor",
"maxSize": 1048576,
"contentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif" ]
},
// 默认
"Default": {
"path": "Upload/Default",
"maxSize": 41943040,
"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" ]
1 year ago
},
// 默认
"QRCode": {
"path": "Upload/QRCode"
}
}
}