Files
past-go/past-go/config.example.yaml
T
Blizzard 8be6d9b1ab feat: add account deletion, announcements and subscription renewal
Support personal records and persistent smoking visibility. Add upload quota preflight, file cleanup, privacy entry, image caching and revision-based page refresh across the backend, admin and mini program.
2026-11-03 22:06:47 +08:00

53 lines
1.4 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.
# 我们past Go 服务配置(复制为 config.yaml 后填写真实值)
listen: ":8080"
# 运行数据目录(uploads/ 与 data/ 在其下),留空则为可执行文件所在目录
data_dir: ""
db:
host: 192.168.100.127
port: 5432
name: past-go
user: root
pass: root
sslmode: disable
wechat:
appid: your_appid
secret: your_secret
notify_template_id: "K_iQMwE_jre0j6QDVL78DZz7wiR1SKVY5h2YJCK6uPU" # 操作与打卡通知共用模板(15198)
tencent_map_key: ""
max_upload_mb: 50
# 定时补发通知间隔(分钟),0 关闭
notify_interval_min: 5
minio:
endpoint: https://s3.sundynix.cn
access_key: your_minio_access_key
secret_key: your_minio_secret_key
bucket: past-go
use_ssl: true
# 微信支付 API v3(直连商户 / 小程序 JSAPI)
wechat_pay:
enabled: false
appid: "wxb463820bf36dd5d6"
mch_id: "your_mch_id"
certificate_serial: "your_certificate_serial"
certificate_path: "" # 可选:填写后启动时校验证书、商户号及私钥的一致性
private_key_path: "cert/apiclient_key.pem"
public_key_id: "your_wechatpay_public_key_id"
public_key_path: "cert/pub_key.pem"
api_v3_key: ""
notify_url: "https://we.sundynix.cn/api/wechatPayNotify"
# Redis 缓存微信 token;log/ 按日期和级别落盘
redis:
addr: 127.0.0.1:6379
username: ""
password: ""
db: 0
key_prefix: "past-go:"
log:
level: info
console: true
retention_days: 30
max_size_mb: 100
max_backups: 10