Files
ai_wht_wechat/go_backend/config/config.dev.yaml
2026-01-06 19:36:42 +08:00

74 lines
2.7 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: 8080
mode: debug # debug, release, test
database:
host: localhost
port: 3306
username: root
password: JKjk20011115
dbname: ai_wht
charset: utf8mb4
parse_time: true
loc: Local
max_idle_conns: 10
max_open_conns: 100
conn_max_lifetime: 3600
redis:
host: 127.0.0.1
port: 6379
password:
db: 0
pool_size: 10
jwt:
secret: dev_secret_key_change_in_production
expire_hours: 168 # 7天
wechat:
app_id: "wxa5bf062342ef754d" # 微信小程序AppID留空则使用默认登录
app_secret: "69d2a3ddc902b26f82f4b56a6e277f7a" # 微信小程序AppSecret
xhs:
python_service_url: "http://localhost:8000" # Python FastAPI服务地址用于登录和发布享受浏览器池+预热加速)
scheduler:
enabled: false # 是否启用定时任务
publish_cron: "*/5 * * * * *" # 每5秒执行一次
max_concurrent: 2 # 最大并发发布数
publish_timeout: 300 # 发布超时时间(秒)
max_articles_per_user_per_run: 2 # 每轮每个用户最大发文数
max_failures_per_user_per_run: 3 # 每轮每个用户最大失败次数
max_daily_articles_per_user: 6 # 每个用户每日最大发文数(自动发布)
max_hourly_articles_per_user: 2 # 每个用户每小时最大发文数(自动发布)
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 (5 * 1024 * 1024)
max_file_size: 10485760 # 10MB (10 * 1024 * 1024)
image_types: [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
static_path: "./static"
base_url: "http://localhost:8080"
storage_type: "oss" # local(本地存储) 或 oss(阿里云OSS)
# 阿里云OSS配置当storageType为oss时生效
oss:
endpoint: "https://oss-cn-beijing.aliyuncs.com/" # OSS访问域名
access_key_id: "LTAI5tNesdhDH4ErqEUZmEg2" # AccessKey ID
access_key_secret: "xZn7WUkTW76TqOLTh01zZATnU6p3Tf" # AccessKey Secret
bucket_name: "bxmkb-beijing" # Bucket名称
base_path: "wht/" # 文件存储基础路径
domain: "" # 自定义域名(可选)
# ========== 阿里云短信配置 ==========
ali_sms:
access_key_id: "LTAI5tSMvnCJdqkZtCVWgh8R" # AccessKey ID
access_key_secret: "nyFzXyIi47peVLK4wR2qqbPezmU79W" # AccessKey Secret
sign_name: "北京乐航时代科技" # 短信签名
template_code: "SMS_486210104" # 短信模板CODE