captcha2: 迁移 captcha.ini 至 CLI args,移除 confs 依赖

- captcha2/src/main.cpp: 移除 fetch_config_from_confs/merge_ini/RpcClient,
  扩展 CLI 至 11 项(--instance/--log-level/--len/--ttl/--font-path/
  --max-store/--rate-limit),配置优先级 CLI > env > 默认值
- core/services.yaml: captcha2 全部 8 项参数迁入 CLI args
- confs/configs/captcha.ini: 已删除
- README.md: 移除 captcha.ini 表行
- _inst.sh: 新增 inst_module captcha2
This commit is contained in:
qing committed 2026-08-10 09:56:41 +00:00
1 parent 3eafc15602
commit 3b6a0fb002
5 files changed
+56 -99

No files matched your search

+23 -2
View File
@@ -145,9 +145,30 @@ services:
# --- 验证码 ---
- name: captcha2
cmd: bash /opt/micro_servers/captcha2/_run.sh
args: ["--instance", "captcha2", "--log-level", "info"]
args:
- "--instance"
- "captcha2"
- "--log-level"
- "info"
# --- 配置全部经 CLI 传递(原 confs/configs/captcha.ini 迁入) ---
- "--addr"
- "127.0.0.1"
- "--port"
- "8009"
- "--workers"
- "4"
- "--len"
- "4"
- "--ttl"
- "300"
- "--font-path"
- "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf"
- "--max-store"
- "10000"
- "--rate-limit"
- "600"
depends_on: []
sleep_before: 1
sleep_before: 0
# --- AI 工具箱 ---
- name: aibox