Files
ai_dianshang/server/configs/config.prod-eu.yaml
2025-11-28 15:18:10 +08:00

81 lines
2.2 KiB
YAML
Raw Permalink 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: 8060
mode: release # debug, release, test
# 数据库配置 - 欧洲区生产环境
database:
driver: mysql
host: eu-db.your-domain.com # 欧洲区数据库地址
port: 3306
username: ai_dianshang_eu
password: "your-eu-db-password" # 请替换为实际密码
dbname: ai_dianshang
charset: utf8mb4
parseTime: true
loc: Local
autoMigrate: false # 生产环境禁用自动迁移
logLevel: silent # 生产环境关闭GORM SQL日志
# Redis配置 - 欧洲区生产环境
redis:
host: localhost
port: 6379
password: ""
db: 0
# JWT配置 - 欧洲区生产环境
jwt:
secret: "prod-eu-jwt-secret-key-change-this"
expire: 7200
# 日志配置 - 欧洲区生产环境
log:
level: info # debug, info, warn, error
filename: logs/app.prod-eu.log
maxSize: 200 # MB
maxAge: 30 # 天
maxBackups: 10 # 保留文件数
enableConsole: true # 启用控制台输出
enableFile: true
format: text # 使用text格式便于查看
enableCaller: true
enableOperation: true
enablePerf: true
perfThreshold: 2000 # 生产环境更宽松的性能阈值
# 微信小程序配置 - 欧洲区生产环境
wechat:
appId: "wx_eu_app_id" # 欧洲区小程序AppID
appSecret: "eu_app_secret" # 欧洲区小程序AppSecret
# 微信支付配置 - 欧洲区生产环境
wechatPay:
environment: "production"
appId: "wx_eu_app_id"
mchId: "eu_merchant_id"
apiV3Key: "eu_api_v3_key"
certPath: "certs/eu_apiclient_cert.pem"
keyPath: "certs/eu_apiclient_key.pem"
serialNo: "eu_serial_no"
notifyUrl: "https://api-eu.your-domain.com/api/v1/payment/notify"
refundNotifyUrl: "https://api-eu.your-domain.com/api/refunds/callback"
# 文件上传配置 - 欧洲区生产环境
upload:
maxImageSize: 5242880 # 5MB
maxFileSize: 10485760 # 10MB
imageTypes: [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
staticPath: "./static"
baseUrl: "https://api-eu.your-domain.com"
storageType: "oss"
# 阿里云OSS配置欧洲区
oss:
endpoint: "oss-eu-central-1.aliyuncs.com" # 欧洲中部地域
accessKeyId: "your-eu-access-key-id"
accessKeySecret: "your-eu-access-key-secret"
bucketName: "your-eu-bucket"
basePath: "dianshang/"
domain: ""