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

-11
View File
@@ -1,11 +0,0 @@
[server]
host = 127.0.0.1
port = 8009
workers = 4
[captcha]
len = 4
ttl = 300
font_path = /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf
max_store = 10000
rate_limit_per_min = 600 # 全局限流仅作最后防线,主要限流由 gateway 按 IP 负责