Files
codex_auto/.env.cpa-runner.example
xiaobai a089da31cd feat: 维护台 maintain(巡检/补号/日志)+ 配置与 .gitignore
- Flask 控制台:Cliproxy 巡检、批量补号、流水线、运行日志
- codex_stats_oauth_dir 支持统计 Cliproxy auth 目录
- 忽略 accounts/oauth、.venv、本地 DB/日志与 new.py

Made-with: Cursor
2026-03-21 20:51:55 +08:00

34 lines
1.1 KiB
Bash
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.
# CPA 定时 runner(scripts/cpa_runner.py)— 复制为 .env.cpa-runner 或写入仓库根 .env
# 若已用 `python -m maintain` 并开启「流水线 → 定时」,请勿再跑本脚本。
# 状态文件默认与维护台一致:maintain/data/pipeline_state.json(可用 STATE_FILE 覆盖)
# 必填:注册脚本(默认本仓库 run.py)
# RUN_SCRIPT=/home/ubt/protocol_chatgpt/run.py
# OAuth JSON 源目录(run.py 写入处)
# OAUTH_DIR=/home/ubt/protocol_chatgpt/accounts/oauth
# 同步目标(Docker/CPA 消费端读此目录)
# TARGET_DIR=/www/wwwroot/docker/cpa/auths
# Python 解释器
# PYTHON_BIN=python3
# 定时间隔(分钟)
# RUN_EVERY_MINUTES=10
# run.py 子进程超时(秒),默认 480
# RUN_SUBPROCESS_TIMEOUT_SEC=480
# 未迁出任何 json 时:发钉钉后是否退出进程(1=与旧版一致,适合 systemd 重启;0=scheduler 继续跑)
# CPA_EXIT_ON_EMPTY=1
# 状态 / 日志 / 锁文件(默认 maintain/data/ 下)
# STATE_FILE=
# LOG_FILE=
# LOCK_FILE=
# 钉钉机器人(可选,不填则跳过通知)
# DINGTALK_WEBHOOK=
# DINGTALK_SECRET=