Blame view

netcore/src/Application/NCC.API/appsettings.json 8.97 KB
96009bc9   hexiaodong   hxd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  {
    "Serilog": {
      "MinimumLevel": {
        "Default": "Information",
        "Override": {
          "System": "Warning",
          "Microsoft": "Warning",
          "Microsoft.Hosting.Lifetime": "Information",
          "Microsoft.EntityFrameworkCore": "Information"
        }
      },
      "WriteTo": [
        {
          "Name": "Console",
          "Args": {
            "outputTemplate": "【时间】{Timestamp:yyyy-MM-dd HH:mm:ss,fff}{NewLine}【等级】{Level:u3}{NewLine}【消息】{Message:lj}{NewLine}{NewLine}"
          }
        },
        {
          "Name": "File",
          "Args": {
            "path": "logs/.log",
            "rollingInterval": "Day",
            "outputTemplate": "【时间】{Timestamp:yyyy-MM-dd HH:mm:ss,fff}{NewLine}【等级】{Level:u3}{NewLine}【消息】{Message:lj}{NewLine}{NewLine}"
          }
        }
      ]
    },
    "AllowedHosts": "*",
    "ConnectionStrings": {
      "ConfigId": "db",
104e4d2f   “wangming”   feat: 增强门店数据分析功能,...
32
      "DBName": "lqerp_dev",
96009bc9   hexiaodong   hxd
33
34
35
      "DBType": "MySql", //MySql;SqlServer;Oracle;PostgreSQL;Dm;Kdbndp;
      //SqlServer
      // "DefaultConnection": "Data Source=localhost;Initial Catalog={0};User ID=sqladmin;Password=P@ssw0rd;MultipleActiveResultSets=true"
addd9f4c   “wangming”   feat: 配置annexpic接...
36
      "DefaultConnection": "Database={0};Data Source=rm-2vccze142rc9a8f58bo.mysql.cn-chengdu.rds.aliyuncs.com;Port=3306;User Id=lvqiansql;Password=LvQ1@n!20251211;Charset=utf8;TreatTinyAsBoolean=true;"
96009bc9   hexiaodong   hxd
37
38
39
40
41
42
43
44
  
    },
    "SpecificationDocumentSettings": {
      "DocumentTitle": "Wesley.NET",
      "DocExpansionState": "None",
      "RoutePrefix": "antis.doc",
      "EnableEnumSchemaFilter": true,
      "EnableTagsOrderDocumentFilter": true,
35bb18d3   “wangming”   更新多个.DS_Store文件,删...
45
      "XmlComments": ["NCC.Code", "NCC.System", "NCC.OAuth", "NCC.Extend"],
96009bc9   hexiaodong   hxd
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
      "GroupOpenApiInfos": [
        {
          "Group": "Default",
          "Title": "安第斯开发平台",
          "Description": "antis soft",
          "Version": "1.20.15"
        }
      ]
    },
    "AppSettings": {
      "InjectMiniProfiler": false,
      "XmlAssmblyName": "NCC.Code.xml,NCC.Food.xml,NCC.System.xml,NCC.OAuth.xml,NCC.Extend.xml"
  
    },
    "JWTSettings": {
      "ValidateIssuerSigningKey": true, // 是否验证密钥,bool 类型,默认true
      "IssuerSigningKey": "7k5yOxSMHVdYjs61gkgUY3W9DHbgk7tokaZlP3QIlfk34D1H7jYEOcLybClW1aKl", // 密钥,string 类型,必须是复杂密钥,长度大于16
      "ValidateIssuer": true, // 是否验证签发方,bool 类型,默认true
      "ValidIssuer": "yinmaisoft", // 签发方,string 类型
      "ValidateAudience": true, // 是否验证签收方,bool 类型,默认true
      "ValidAudience": "yinmaisoft", // 签收方,string 类型
      "ValidateLifetime": true, // 是否验证过期时间,bool 类型,默认true,建议true
      "ExpiredTime": 1440, // 过期时间,long 类型,单位分钟,默认20分钟
      "ClockSkew": 5 // 过期时间容错值,long 类型,单位秒,默认5
    },
    "Cache": {
      "CacheType": "MemoryCache", //MemoryCache    RedisCache
      //"RedisConnectionString": "127.0.0.1:6379,defaultDatabase=12",
      "RedisConnectionString": ""
    },
    "SnowId": {
      "WorkerId": "20" // 取值范围0~63,默认1
    },
    "CorsAccessorSettings": {
      "PolicyName": "NCCCorsAccessor",
3fcf01d8   hexiaodong   hxd202509112049
81
      "WithOrigins": [ "http://192.168.0.138:8080", "http://localhost:8080", "http://localhost:2015", "http://localhost:2011", "http://localhost:3000", "http://localhost:9528", "http://localhost:8200", "http://localhost:3001", "http://localhost:8080" ],
96009bc9   hexiaodong   hxd
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
      "WithExposedHeaders": [ "access-token", "x-access-token", "Content-Disposition" ]
    },
    "PaymentSettings": {
      /*  微信支付配置  */
      "WepayConfig": {
        "WEPAY_CHARTSET": "utf-8",
        "WEPAY_PAY_URL": "https://api.mch.weixin.qq.com/pay/unifiedorder",
        "WEPAY_ORDERQUERY_URL": "https://api.mch.weixin.qq.com/pay/orderquery",
        "WECHAT_AUTH_URL": "https://open.weixin.qq.com/connect/oauth2/authorize",
        "WECHAT_TOKEN_URL": "https://api.weixin.qq.com/sns/oauth2/access_token",
        "WECHAT_CALLBACKIP_URL": "https://api.weixin.qq.com/cgi-bin/getcallbackip",
        "WECHAT_GETTOKEN_URL": "https://api.weixin.qq.com/cgi-bin/token",
        "WECHAT_REFUND_URL": "https://api.mch.weixin.qq.com/secapi/pay/refund",
        "WECHAT_SSlCertPath": "Certificate/apiclient_cert",
        "WECHAT_SSlCertPass": "1601138631",
        "WEPAY_APP_APPID": "",
        "WEPAY_APP_MCH_ID": "1601138631",
        "WEPAY_APP_NOTIFY_URL": "https://uu365.t1j2.com/api/Food/baseorder/WePayNotify",
        //开发者平台配置
        "WEPAY_APP_URL": "",
        "WEPAY_APP_KEY": "",
        //公众号平台配置
        "WEPAY_WEB_APPID": "wx47e94df2f5de9494",
        "WEPAY_WEB_MCH_ID": "1601138631", //商户号 
        "WEPAY_WEB_NOTIFY_URL": "https://uu365.t1j2.com/api/Food/baseorder/WePayNotify", //微信回调地址
        "WEPAY_WEB_URL": "https://uu365.t1j2.com/",
        "WEPAY_WEB_KEY": "HuifanLai2021nianwx47e94df2f5de9", //微信商户秘钥 
  
        //小程序 
        "APPLETE_APPSECRET": "2b294c059dcbd3a029fe87d1de8d3eb9",
        "APPLETE_APPID": "wx57e476568c271141"
  
      },
      /*  支付宝支付配置  */
      "AlipayConfig": {
        "ALIPay_URL": "https://mapi.alipay.com/gateway.do?",
        "ALIPay_NotifyURL": "",
        "ALIPay_ErrorURL": "",
        "ALI_PARTER": "wxa2d04b53b653c64f",
        "ALI_KEY": "",
        "ALI_ACCOUNT": "",
        "ALI_SELLERID": "",
        "ALI_SELLEREMAIL": "",
        "ALI_HTTPS_VERYFY_URL": "https://mapi.alipay.com/gateway.do?service=notify_verify",
        "ALIPay_WAP_SERVICE": "alipay.wap.create.direct.pay.by.user",
        "ALIPay_WEB_SERVICE": "create_direct_pay_by_user",
        "ALIPay_MOBILE_SERVICE": "mobile.securitypay.pay",
        "ALIPay_RSA_PRIVATEKEY": "", //我的私钥
        "ALIPay_RSA_PUBLICKEY": "", //我的公钥
        "ALIPay_RSA_ALI_PUBLICKEY": "" //支付宝公钥  
      }
  
    },
    // 更多配置,请查看WeChatPayOptions类
    "WeChatPay": {
      // 应用号
      // 如:微信公众平台AppId、微信开放平台AppId、微信小程序AppId、企业微信CorpId等
      "AppId": "xx",
  
      // 商户号
      // 为微信支付商户平台的商户号 
      "MchId": "xx",
  
      // 商户API密钥  
      // 为微信支付商户平台的API密钥,请注意不是APIv3密钥 AppSecret 9cfa989bff76936977e25a5015f0a368
      "APIKey": "",
  
      // 商户APIv3密钥
      // 为微信支付商户平台的APIv3密钥,请注意不是API密钥,v3接口必填
      "APIv3Key": "",
  
      // 商户API证书
      // 使用V2退款、付款等接口时必填
      // 使用V3接口时必填
      // 可为证书文件路径 / 证书文件的base64字符串
      "Certificate": "",
  
      // 商户API私钥
      // 当配置了P12格式证书时,已包含私钥,不必再单独配置API私钥。
      // PEM格式证书,需要单独配置。
      "APIPrivateKey": "",
      //支付回调地址
      "NotifyUrl": "https://xxx/api/Order/BaseOrder/Unifiedorder",
      // RSA公钥
      // 目前仅调用"企业付款到银行卡API [V2]"时使用,执行本示例中的"获取RSA加密公钥API [V2]"即可获取。
      "RsaPublicKey": ""
    },
    "AntisSoftSettings": {
      "AntisSoftName": "NCC.Test.AAA",
      "AllowIps": [ "http://192.168.0.138:8080", "http://localhost:3000", "http://localhost:2011", "http://localhost:8200", "http://localhost:3001" ],
  
      "AllowDemoBool": false,
      "SetPreflightMaxAge": 100
    },
    "OAuth": {
      "Wechat": {
        "app_id": "",
        "app_key": "",
        "redirect_uri": "",
        "scope": "snsapi_userinfo"
      }
    },
a78c0ae8   “wangming”   feat: 退卡服务添加健康师和科...
184
185
186
187
188
    "WeChatBot": {
      "BotApiUrl": "http://wx.lvqianmeiye.com/api/Bot/send-text",
      "WebhookUrl": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=496f1add-122b-43fc-9e38-0ca79c48b33f",
      "WebhookUrlTest": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=6f8686ec-5011-4c1d-bae9-d82a2a2f4d83"
    },
96009bc9   hexiaodong   hxd
189
190
191
    "NCC_App": {
      "CodeAreasName": "SubDev,Food,Extend,test",
      //系统文件路径(末尾必须带斜杆)
ac25ff12   “wangming”   feat: 添加大项目部老师工资计...
192
      "SystemPath": "/",
96009bc9   hexiaodong   hxd
193
194
195
196
197
198
199
200
201
202
203
204
205
206
      //微信公众号允许上传文件类型
      "MPUploadFileType": "bmp,png,jpeg,jpg,gif,mp3,wma,wav,amr,mp4",
      //微信允许上传文件类型
      "WeChatUploadFileType": "jpg,png,doc,docx,ppt,pptx,xls,xlsx,pdf,txt,rar,zip,csv,amr,mp4",
      //允许图片类型
      "AllowUploadImageType": "jpg,gif,png,bmp,jpeg,tiff,psd,swf,svg,pcx,dxf,wmf,emf,lic,eps,tga",
      //允许上传文件类型
      "AllowUploadFileType": "jpg,gif,png,bmp,jpeg,doc,docx,ppt,pptx,xls,xlsx,pdf,txt,rar,zip,csv",
      "Domain": "http://127.0.0.1:58504",
      "YOZO": {
        "domain": "http://eic.yozocloud.cn",
        "domainKey": "yozoHbiPMzu50374"
      },
      //Minio
addd9f4c   “wangming”   feat: 配置annexpic接...
207
      "BucketName": "lvqian-erip",
96009bc9   hexiaodong   hxd
208
209
      //文件存储类型(本地:local,MinIo:minio,阿里云:aliyun-oss,腾讯云:tencent-cos)
      "FileStoreType": "local",
addd9f4c   “wangming”   feat: 配置annexpic接...
210
211
212
213
214
      //阿里云OSS配置
      "AliyunOSS": {
        "AccessKeyId": "LTAI5t6h4i95uapwzDwKfNxi",
        "AccessKeySecret": "84dpUAlu2eoyFOIEhFGkZlIy45h0B6",
        "Endpoint": "oss-cn-chengdu.aliyuncs.com",
26692349   “wangming”   feat: 配置annexpic接...
215
        "Region": "cn-chengdu",
ac25ff12   “wangming”   feat: 添加大项目部老师工资计...
216
        "CustomDomain": "https://lvqian-erip.oss-cn-chengdu.aliyuncs.com"
addd9f4c   “wangming”   feat: 配置annexpic接...
217
      },
96009bc9   hexiaodong   hxd
218
219
220
221
222
223
224
      //================== 系统错误邮件报告反馈相关 ============================== -->
      //软件的错误报告
      "ErrorReport": "false",
      //软件的错误报告发给谁
      "ErrorReportTo": "yinhmsaisoft@163.com"
    }
  }