- confs/configs/captcha.ini: 新增 captcha 配置 (server + captcha 段, 含 font_path) - captcha/log_client.py: 新增日志客户端副本 (service_name=captcha) - captcha/captcha_service.py: 接入统一的 confs 配置加载模式 (confs 强依赖 retry_on_refused -> 环境变量覆盖 -> 完整性校验) - CAPTCHA_LEN/CAPTCHA_TTL 改为可配置 - 字体路径迁移到 confs, 新增 CAPTCHA_FONT_PATH 环境变量覆盖与 PIL 回退兜底 - 关键路径 (启动/生成/校验失败) 接入 log_client 日志上报
10 lines
144 B
INI
10 lines
144 B
INI
[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
|