Files
push_fenxiangfengshi/config.example.yaml
T

73 lines
2.6 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.
# 丰享订单监控配置模板
# 复制为 config.yaml 后修改;密钥建议改用环境变量注入(见文件末尾)
shop_id: "20434543575189"
timezone: Asia/Shanghai
api:
base_url: https://fs.szfx.com
order_path: /saasmerchant/pcweb/order/quickpayorder/list
# 必须写在一行:用 >- 折行会在 query 里折出空格,导致登录链接失效
login_url: "https://fspass.szfx.com/ucenter/userlogin?platform=saas&redirect_url=https%3A%2F%2Ffs.szfx.com%2FMMS%23%2F&return_url=https%3A%2F%2Ffs.szfx.com%2Fsaasmerchant%2Fsetstoken"
timeout: 20
max_retries: 2
notify:
# 服务器上只开企业微信;feishu 留位置,enabled=true 且填 webhook 后才会生效
channels: [wecom]
alert_cooldown_sec: 1800 # 同一类告警的冷却时间,防刷屏
wecom:
webhook: "" # 或用 FX_WECOM_WEBHOOK
feishu:
enabled: false # 注意:仓库里原有的飞书 token 已失效(code=19001)
webhook: ""
polling:
peak_hours: [[11, 13], [17, 19]] # 高峰时段(左闭右开)
interval_min: 5
interval_max: 10
peak_page_size: 20
idle_page_size: 5
night_start: "21:00" # 夜间暂停起点
night_end: "07:40" # 夜间结束点
night_check_sec: 60 # 夜间分片休眠步长(同时决定 Cookie 感知延迟)
keepalive_sec: 300 # 保活探测间隔
bulk_summary_threshold: 5 # 积压超过该条数改发汇总,防刷屏
paths:
cookies: data/cookies.json
state: data/state.json
logs: data/logs
admin:
enabled: true
host: 0.0.0.0
port: 8089
token: "" # 或用 FX_ADMIN_TOKEN;为空时只允许本机回环写
log:
level: INFO
max_bytes: 5242880
backup_count: 5
# 本地 Windows 模式才需要
tts:
enabled: false
voice_prompt: ""
# ---------------------------------------------------------------------------
# 环境变量(优先级高于本文件):
# FX_CONFIG=config.yaml 配置文件路径
# FX_SHOP_ID 店铺 ID
# FX_WECOM_WEBHOOK 企业微信机器人 webhook
# FX_FEISHU_WEBHOOK / FX_FEISHU_ENABLED
# FX_CHANNELS=wecom,feishu 覆盖通道列表
# FX_ADMIN_TOKEN 管理接口 token
# FX_ADMIN_PORT 管理接口端口(默认 8089)
# FX_DATA_DIR=/app/data cookies/state/logs 统一目录
# FX_LOG_LEVEL=INFO
# FX_TTS_ENABLED=0
# FX_INDEXTTS_HOME / FX_INDEXTTS_VOICE 本地 TTS(Windows)
# FX_SERVER / FX_ADMIN_TOKEN fengxiang_scraper.py --upload 用
# ---------------------------------------------------------------------------