Files
ai_dianshang/server/configs/config.test.yaml
2025-11-17 13:32:54 +08:00

68 lines
2.0 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:
port: 8080
mode: test # debug, release, test
# 数据库配置 - 测试环境
database:
driver: mysql
host: 127.0.0.1
port: 3306
username: root
password: "test_password_123"
dbname: ai_dianshang_test
charset: utf8mb4
parseTime: true
loc: Local
# Redis配置 - 测试环境
redis:
host: localhost
port: 6379
password: ""
db: 1 # 使用不同的数据库
# JWT配置 - 测试环境
jwt:
secret: "test-jwt-secret-key-for-testing-only"
expire: 3600 # 1小时测试环境较短
# 日志配置 - 测试环境
log:
level: info # debug, info, warn, error
filename: logs/app.test.log
maxSize: 50 # MB
maxAge: 3 # 天
maxBackups: 2 # 保留文件数
enableConsole: true
enableFile: true
format: json
enableCaller: true
enableOperation: true
enablePerf: true
perfThreshold: 1000
# 微信小程序配置 - 测试环境
wechat:
appId: "wxccc7018b3bfff234"
appSecret: "fa5802a24e7dca8a3cf91ad1e2f288e8"
# 微信支付配置 - 测试环境
wechatPay:
environment: "sandbox" # sandbox(沙箱) 或 production(生产)
appId: "wxccc7018b3bfff234" # 测试环境微信小程序AppID
mchId: "test_mch_id" # 测试商户号
apiV3Key: "test_api_v3_key_for_testing_only" # 测试APIv3密钥
certPath: "certs/test_apiclient_cert.pem" # 测试商户证书路径
keyPath: "certs/test_apiclient_key.pem" # 测试商户私钥路径
serialNo: "TEST_SERIAL_NO" # 测试证书序列号
notifyUrl: "http://localhost:8080/api/v1/payment/notify" # 支付回调地址
refundNotifyUrl: "http://localhost:8080/api/refunds/callback" # 退款回调地址
# 文件上传配置 - 测试环境
upload:
maxImageSize: 5242880 # 5MB
maxFileSize: 10485760 # 10MB
imageTypes: [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
staticPath: "./static"
baseUrl: "http://localhost:8080"