Files
ai_wht_wechat/go_backend/config/config.prod.yaml
2026-01-23 16:27:47 +08:00

73 lines
2.5 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: 8070
mode: release # debug, release, test
database:
host: 8.149.233.36
port: 3306
username: ai_wht_write
password: 7aK_H2yvokVumr84lLNDt8fDBp6P # 生产环境请修改密码
dbname: ai_wht
charset: utf8mb4
parse_time: true
loc: Local
max_idle_conns: 20
max_open_conns: 200
conn_max_lifetime: 3600
redis:
host: 8.140.194.184
port: 6379
password: Redis@123456
db: 0
pool_size: 20
jwt:
secret: your_production_secret_key_change_this # 生产环境请修改密钥
expire_hours: 168 # 7天
wechat:
app_id: "wxa5bf062342ef754d"
app_secret: "69d2a3ddc902b26f82f4b56a6e277f7a"
xhs:
python_service_url: "http://127.0.0.1:8080" # Python FastAPI服务地址用于登录和发布享受浏览器池+预热加速)
scheduler:
enabled: false # 生产环境启用定时任务
publish_cron: "0 0 * * * *" # 每小时执行一次
max_concurrent: 5 # 最大并发发布数
publish_timeout: 300 # 发布超时时间(秒)
max_articles_per_user_per_run: 5 # 每轮每个用户最大发文数
max_failures_per_user_per_run: 3 # 每轮每个用户最大失败次数
max_daily_articles_per_user: 20 # 每个用户每日最大发文数(自动发布)
max_hourly_articles_per_user: 3 # 每个用户每小时最大发文数(自动发布)
proxy: "" # 可选:静态全局代理地址,例如 http://user:pass@ip:port
user_agent: "" # 可选自定义User-Agent不填则使用默认
proxy_pool:
enabled: true # 生产环境启用代理池
api_url: "http://api.tianqiip.com/getip?secret=xo0uhiz5&num=1&type=txt&port=1&mr=1&sign=d82157fb70c21bae87437ec17eb3e0aa"
upload:
max_image_size: 5242880 # 5MB
max_file_size: 10485760 # 10MB
image_types: [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
static_path: "./static"
base_url: "https://your-domain.com" # 生产环境域名
storage_type: "oss" # 生产环境使用OSS
oss:
endpoint: "oss-cn-beijing.aliyuncs.com"
access_key_id: "LTAI5tNesdhDH4ErqEUZmEg2"
access_key_secret: "xZn7WUkTW76TqOLTh01zZATnU6p3Tf"
bucket_name: "bxmkb-beijing"
base_path: "wht/"
domain: ""
# ========== 阿里云短信配置 ==========
ali_sms:
access_key_id: "LTAI5tSMvnCJdqkZtCVWgh8R" # 生产环境建议使用环境变量
access_key_secret: "nyFzXyIi47peVLK4wR2qqbPezmU79W" # 生产环境建议使用环境变量
sign_name: "北京乐航时代科技" # 短信签名
template_code: "SMS_486210104" # 短信模板CODE