{ "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information" } }, "ConnectionStrings": { "conn_db": "server=39.108.190.52;Database=key1_beacon;Uid=key1_beacon;Pwd=AmEKsNFx6BSXHsWe;SslMode=none;CharSet=utf8mb4;AllowLoadLocalInfile=true;AllowUserVariables=true;", //"conn_db": "server=127.0.0.1;Database=shop;Uid=root;Pwd=root;SslMode=none;CharSet=utf8mb4;AllowLoadLocalInfile=true;AllowUserVariables=true;", "conn_db_type": "8" //数据库类型 MySql = 0, SqlServer = 1 }, "urls": "http://localhost:8888", //项目启动url,如果改动端口前端对应devServer也需要进行修改 "corsUrls": "http://localhost:8887", //跨域地址(前端启动项目,前后端分离单独部署需要设置),多个用","隔开 "JwtSettings": { "Issuer": "ARWAdmin.NET", "Audience": "ARWAdmin.NET", "SecretKey": "SecretKey-ARWADMIN.NET-20210101", "Expire": 43200 //jwt登录过期时间(分) }, "InitDb": false, //是否初始化db "DemoMode": false, //是否演示模式 "Upload": { "UploadUrl": "http://localhost:8888", //本地存储资源访问路径 "localSavePath": "uploads" //本地上传默认文件存储目录 wwwroot/Uploads/uploads }, //阿里云存储配置 "AARWYUN_OSS": { "REGIONID": "oss-cn-hongkong.aliyuncs.com", "KEY": "LTAI5tLGSBenBxmdvZB4TpVg", "SECRET": "OR1kPyaOAP7q4zEtsmEqepZcyWG1yh", "bucketName": "arw", "domainUrl": "arw.oss-cn-hongkong.aliyuncs.com" //访问资源域名 }, //阿里云短信配置 "AARWYUN_MSG": { "signName": "阿里云短信测试", "accessKeyId": "LTAI5tDcXaqVHv1z7uqM4zSz", "accessSecret": "3ggZMDx8ardkSbEJSIybIsqwk0z9tm", "templateCode": "SMS_154950909" }, "gen": { "conn": "server=39.108.190.52;Database=key1_beacon;Uid=key1_beacon;Pwd=AmEKsNFx6BSXHsWe;SslMode=none;CharSet=utf8mb4;AllowLoadLocalInfile=true;AllowUserVariables=true;", "dbType": 8, //MySql = 0, SqlServer = 1 "autoPre": true, //自动去除表前缀 "author": "admin", "tablePrefix": "tb_", //"表前缀(生成类名不会包含表前缀,多个用逗号分隔)", "vuePath": "D:\\.Net\\Projects\\key1_beacon\\key1_beacon_back" //前端代码存储路径eg:D:\Work\ARWAdmin-Vue3 }, //邮箱配置信息 "MailOptions": { //发送人邮箱 "From": "2679599887@qq.com", //eg:xxxx@qq.com //发送人邮箱密码 "Password": "njxixccztolbeaaf", //协议 "Smtp": "smtp.qq.com", "Port": 465, "Signature": "" }, //redis服务配置 "RedisServer": { "Cache": "127.0.0.1:6379,defaultDatabase=0,poolsize=50,ssl=false,writeBuffer=10240,prefix=cache:", "Session": "127.0.0.1:6379,defaultDatabase=0,poolsize=50,ssl=false,writeBuffer=10240,prefix=session:" }, //接口请求限制 "IpRateLimiting": { "EnableEndpointRateLimiting": true, "StackBlockedRequests": false, "RealIpHeader": "X-Real-IP", "ClientIdHeader": "X-ClientId", "HttpStatusCode": 429, "EndpointWhitelist": [ "post:/system/dict/data/types", "*:/msghub/negotiate", "*:/LogOut" ], "QuotaExceededResponse": { "Content": "{{\"code\":429,\"msg\":\"访问过于频繁,请稍后重试\"}}", "ContentType": "application/json", "StatusCode": 429 }, //通用规则,api规则,结尾一定要带* "GeneralRules": [ { "Endpoint": "*:/captchaImage", //时间段,格式:{数字}{单位};可使用单位:s, m, h, d "Period": "3s", "Limit": 5 }, { "Endpoint": "post:*", //时间段,格式:{数字}{单位};可使用单位:s, m, h, d "Period": "3s", "Limit": 1 }, { "Endpoint": "put:*", //时间段,格式:{数字}{单位};可使用单位:s, m, h, d "Period": "3s", "Limit": 1 } ], "IpRateLimitPolicies": { //ip规则 "IpRules": [ ] } }, "CrawlerConfigs": { "crawler": [ { "name": "yellow", "hosts": [ ] }, { "name": "buxiuse", "hosts": [ "https://www.buxiuse.com/?page=1" ] } ] }, "Kuaidi100Setting": { "key": "", //授权key "customer": "", //customer "secret": "", //secret "userid": "", //userid "siid": "", // 快递100打印机或者云盒设备码(使用电子面单打印接口或云打印相关接口必填) "tid": "" // 短信模板id }, //Senparc.Weixin SDK 设置 "SenparcWeixinSetting": { //以下为 Senparc.Weixin 的 SenparcWeixinSetting 微信配置 //注意:所有的字符串值都可能被用于字典索引,因此请勿留空字符串(但可以根据需要,删除对应的整条设置)! //微信全局 "IsDebug": true, //以下不使用的参数可以删除,key 修改后将会失效 //公众号 "Token": "", "EncodingAESKey": "", //公众号解密秘钥 "WeixinAppId": "wx6b11886f697a2d9d", //公众号AppId "WeixinAppSecret": "80a25e83603828c649224447e4ae7e0f", //公众号秘钥 //微信支付V3 "TenPayV3_AppId": "wxb9b9846ca6ad841b", // 小程序AppId "TenPayV3_AppSecret": "c933697c2837dac73d8d18721e08ad17", // 小程序AppSecret "TenPayV3_SubAppId": "", //子小程序AppId,没有可留空 "TenPayV3_SubAppSecret": "", //子小程序AppSecret,没有可留空 "TenPayV3_MchName": "", //商户名称 "TenPayV3_MchId": "", //商户号 "TenPayV3_SubMchId": "", //子商户,没有可留空 "TenPayV3_Key": "", // (旧) Key "TenPayV3_CertPath": "", //支付证书物理路径,如:D:\\cert\\apiclient_cert.p12 "TenPayV3_CertSecret": "", //支付证书密码(原始密码和 MchId 相同) "TenPayV3_TenpayNotify": "", // 回调方法 "TenPayV3_RefundNotify": "", // 退款回调方法 "TenPayV3_WxOpenNotify": "", // 小程序回调方法 "TenPayV3_PrivateKey": "", //(新)证书私钥 "TenPayV3_SerialNumber": "", //(新)证书序列号 "TenPayV3_ApiV3Key": "" //(新)APIv3 密钥 } }