voucher/configs/config.yaml

60 lines
2.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server:
http:
addr: 0.0.0.0:13000
timeout: 30s
isOpenSwagger: true #是否开启api文档仅用于开发、测试线上禁止启用
isResponseReqHeaders: true #是否开启响应请求头,仅用于开发调试,线上禁止启用
data:
db:
driver: mysql
source: root:lansexiongdi6,@tcp(47.97.27.195:3306)/merketing?parseTime=True&loc=Local
maxIdle: 5 #最大的空闲连接数
maxOpen: 100 #最大连接数0表示不受限制
maxLifetime: 5s #连接复用的最大生命周期
isDebug: true
redis: #没有则注释此属性
addr: 47.97.27.195:6379
password: lansexiongdi@666
readTimeout: 3s
writeTimeout: 3s
poolSize: 5 #连接池大小不配置或配置为0表示不启用连接池
minIdleConns: 2 #最小空闲连接数
connMaxIdleTime: 30s #每个连接最大空闲时间,如果超过了这个时间会被关闭
db: 1
rocketMQ:
addr: "http://rmq-cn-nwy3fn4ex09.cn-chengdu.rmq.aliyuncs.com:8080"
accessKey: "Qecl4cea2IAZPKoD"
secretKey: "Z3596KCFA9RAUR6k"
secretToken: ""
eventMap:
order:
topic: voucher_order_create
group: voucher_order_create_group
isOpenConsumer: false #是否启动消费 true/false
PerCoroutineCnt: 5 #协程数量不配置默认为20
RetryCnt: 3 #重试次数,不配置默认38
notify:
topic: voucher_order_notify
group: voucher_order_notify_group
isOpenConsumer: false #是否启动消费 true/false
PerCoroutineCnt: 5 #协程数量不配置默认为20
RetryCnt: 3 #重试次数,不配置默认38
wechat:
mchID: "1605446142" # 证书所属商户
mchCertificateSerialNumber: "4D081089DEB385316CBDCB55C070287E4920AC76"
cmb:
sm2Prk: "" # 私钥 非对称加解密算法SM2 公钥长度为65字节私钥长度为32字节。非对称密钥是基于国密推荐的椭圆曲线生成的国密推荐曲线sm2p256v1
sm2Puk: "" # 公钥,给到招行密钥
cmbSm2Puk: "" # 招行公钥
mid: "d6fdd78b6fd13a808818286b9cad9687"
aid: "5efaa21263b94f669a1c90ed0279df20"
notifyUrl: "https://gateway.dev.cdlsxd.cn/ymt/jd/v1/notify"
#配置日志
logs:
business: business.log #业务日志路径:如果不写日志,则不配置或配置为空
access: access.log #访问日志路径:如果不写日志,则不配置或配置为空