78 lines
2.7 KiB
YAML
78 lines
2.7 KiB
YAML
# 开发环境配置
|
||
server:
|
||
port: 8080
|
||
mode: debug # debug, release, test
|
||
|
||
# 数据库配置 - 开发环境
|
||
database:
|
||
driver: mysql
|
||
host: 127.0.0.1
|
||
port: 3306
|
||
username: root
|
||
password: "JKjk20011115"
|
||
dbname: ai_dianshang
|
||
charset: utf8mb4
|
||
parseTime: true
|
||
loc: Local
|
||
|
||
# Redis配置 - 开发环境
|
||
redis:
|
||
host: localhost
|
||
port: 6379
|
||
password: ""
|
||
db: 0
|
||
|
||
# JWT配置 - 开发环境
|
||
jwt:
|
||
secret: "dev-jwt-secret-key-not-for-production"
|
||
expire: 7200 # 2小时,单位:秒
|
||
|
||
# 日志配置 - 开发环境
|
||
log:
|
||
level: debug # debug, info, warn, error
|
||
filename: logs/app.dev.log
|
||
maxSize: 100 # MB
|
||
maxAge: 7 # 天 (开发环境保留时间短)
|
||
maxBackups: 3 # 保留文件数
|
||
enableConsole: true
|
||
enableFile: true
|
||
format: text # 开发环境使用text格式便于阅读
|
||
enableCaller: true
|
||
enableOperation: true
|
||
enablePerf: true
|
||
perfThreshold: 500 # 开发环境更严格的性能阈值
|
||
|
||
# 微信小程序配置 - 开发环境
|
||
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: "http://localhost:8080/api/v1/payment/notify" # 支付回调地址
|
||
refundNotifyUrl: "http://localhost:8080/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://localhost:8080"
|
||
storageType: "local" # local(本地存储) 或 oss(阿里云OSS)
|
||
|
||
# 阿里云OSS配置(当storageType为oss时生效)
|
||
oss:
|
||
endpoint: "oss-cn-shanghai.aliyuncs.com" # OSS访问域名,根据你的地域修改
|
||
accessKeyId: "LTAI5tNesdhDH4ErqEUZmEg2" # 你的AccessKey ID
|
||
accessKeySecret: "xZn7WUkTW76TqOLTh01zZATnU6p3Tf" # 你的AccessKey Secret
|
||
bucketName: "oss-pai-apou8llecyqfa7c9du-cn-shanghai" # 你的Bucket名称
|
||
basePath: "dianshang/" # 文件存储基础路径
|
||
domain: "" # 自定义域名(可选,如果有CDN加速域名) |