43 lines
1.6 KiB
YAML
43 lines
1.6 KiB
YAML
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
|
||
|
||
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服务地址
|
||
|
||
scheduler:
|
||
enabled: true # 是否启用定时任务
|
||
publish_cron: "* * * * * *" # 每1小时执行一次(开发环境测试用)
|
||
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=lu29e593&num=1&type=txt&port=1&mr=1&sign=4b81a62eaed89ba802a8f34053e2c964"
|