Files
kami_gateway/conf/app.conf
danial 7bfb3195e1 fix(config): 更新配置文件和代理日志输出优化
- 修改数据库密码和 Redis 连接信息为新的配置
- 更新配置模型中 Redis 默认主机和密码
- 优化获取代理时日志记录,添加成功日志和失败错误日志
- 测试用例中使用 resty 检测代理有效性,替换 sleep 暂停方式
2025-12-09 01:49:58 +08:00

78 lines
1.9 KiB
Plaintext

appname = jhgateway
httpport = 12309
RemoteAddr = 0.0.0.0
RemotePort = 12309
runmode = prod
HTTPAddr = 0.0.0.0
sessionon = true
copyrequestbody = true
#日志配置
[logs]
# 0 ~ 7, 日志级别
#level =7
level =7
#日志保存路径
filepath= ./logs/jhmerchant.log
#需要显示的日志信息
separate="["emergency","alert","critical","error","warning","notice","info","debug"]"
#日志保存最大天数
maxdays=10
[mysql]
dbhost = 127.0.0.1
dbport = 3306
dbuser = root
dbpasswd = mysql123
dbbase = kami
debug = true
[redis]
host = 127.0.0.1:30567
db = 0
password = redis123
[mq]
host = 127.0.0.1
port = 61613
[mf]
; 提交卡密接口
submit_card_url = http://test.shop.center.mf178.cn/userapi/card/submit_card
; url = https://shop.task.mf178.cn/userapi/card/submit_card
query_card_url = http://test.shop.center.mf178.cn/userapi/card/order_info
[shop]
key = BjI@3@N5XeU7kLP5$MppMobz$3ljek7d
[appleCard]
; 提交卡密接口
submit_card_url = http://kami_backend:12401/api/cardInfo/appleCard/submit
; url = https://shop.task.mf178.cn/userapi/card/submit_card
query_card_url = http://kami_backend:12401/api/cardInfo/appleCard/query
notify_url = http://kami_gateway:12309/appleCard/notify
[jdCard]
; 提交卡密接口
submit_card_url = http://kami_backend:12401/api/cardInfo/jdCard/submit
; url = https://shop.task.mf178.cn/userapi/card/submit_card
query_card_url = http://kami_backend:12401/cardInfo/jdCard/query
notify_url = http://kami_gateway:12309/jdCard/notify
[tMallGame]
submit_card_url=http://test.shop.center.mf178.cn/recharge/tMallGame/order/submit
notify_url=http://test.shop.center.mf178.cn/api/recharge/tMallGame/order/notify
query_card_url=http://test.shop.center.mf178.cn/userapi/card/order_info
[forbidden]
host=http://kami_backend:12401
[secret]
key = thisis32bitlongpassphraseimusing
iv = 1234567890123456
[selfThird]
notify_url = http://kami_gateway:12309/selfThird/notify
[proxy]
proxies = []