feat(captcha): 接入 confs 配置中心并迁移字体路径
- 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 日志上报
This commit is contained in:
1 parent
2bb1d69d8a
commit
192610615e
3 files changed
+268
-8
No files matched your search
@@ -0,0 +1,9 @@
|
||||
[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
|
||||
Reference in new issue
Block a user