web
This commit is contained in:
80
server/configs/config.prod-us.yaml
Normal file
80
server/configs/config.prod-us.yaml
Normal file
@@ -0,0 +1,80 @@
|
||||
# 生产环境配置 - 美国区
|
||||
server:
|
||||
port: 8060
|
||||
mode: release # debug, release, test
|
||||
|
||||
# 数据库配置 - 美国区生产环境
|
||||
database:
|
||||
driver: mysql
|
||||
host: 104.244.91.212 # 美国区数据库地址
|
||||
port: 3306
|
||||
username: ai_dianshang
|
||||
password: "7aK_H2yvokVumr84lLNDt8fDBp6P" # 请替换为实际密码
|
||||
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-us-jwt-secret-key-change-this"
|
||||
expire: 7200
|
||||
|
||||
# 日志配置 - 美国区生产环境
|
||||
log:
|
||||
level: info # debug, info, warn, error
|
||||
filename: logs/app.prod-us.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: "wxccc7018b3bfff234"
|
||||
appSecret: "fa5802a24e7dca8a3cf91ad1e2f288e8"
|
||||
|
||||
# 微信支付配置 - 开发环境
|
||||
wechatPay:
|
||||
environment: "production" # sandbox(沙箱) 或 production(生产)
|
||||
appId: "wxccc7018b3bfff234" # 您的真实微信小程序AppID
|
||||
mchId: "1726717114" # 您的真实微信支付商户号
|
||||
apiV3Key: "M2nB4vCxZ7qW8eKrDtA1jHlP5gF3sN9y" # 您的真实APIv3密钥(32位)
|
||||
certPath: "certs/apiclient_cert.pem" # 商户证书路径
|
||||
keyPath: "certs/apiclient_key.pem" # 商户私钥路径
|
||||
serialNo: "26DA8C2BC03B796222DA3FCFC6825B236A8C7538" # 证书序列号
|
||||
notifyUrl: "https://vizee.shop/api/v1/payment/notify" # 支付回调地址
|
||||
refundNotifyUrl: "https://vizee.shop/api/refunds/callback" # 退款回调地址
|
||||
|
||||
# 文件上传配置 - 生产环境
|
||||
upload:
|
||||
maxImageSize: 5242880 # 5MB (5 * 1024 * 1024)
|
||||
maxFileSize: 10485760 # 10MB (10 * 1024 * 1024)
|
||||
imageTypes: [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
|
||||
staticPath: "./static"
|
||||
baseUrl: "http://vizee.shop"
|
||||
storageType: "oss" # local(本地存储) 或 oss(阿里云OSS)
|
||||
|
||||
# 阿里云OSS配置(当storageType为oss时生效)
|
||||
oss:
|
||||
endpoint: "oss-cn-beijing.aliyuncs.com" # OSS访问域名,根据你的地域修改
|
||||
accessKeyId: "LTAI5tNesdhDH4ErqEUZmEg2" # 你的AccessKey ID
|
||||
accessKeySecret: "xZn7WUkTW76TqOLTh01zZATnU6p3Tf" # 你的AccessKey Secret
|
||||
bucketName: "bxmkb-beijing" # 你的Bucket名称
|
||||
basePath: "dianshang/" # 文件存储基础路径
|
||||
domain: "" # 自定义域名(可选,如果有CDN加速域名)
|
||||
Reference in New Issue
Block a user