waf: CLI 标准化(--log-level/--instance + config.yaml 字段全 CLI 覆盖)

- 新增 --listen/--host (覆盖 listen)、--upstream、--tls-cert、--tls-key、--rules-dir
- 新增 --log-level debug|info|warn|error(logclient 加级别过滤)
- 新增 --instance 实例名(注册中心用)
- 自定义 --help 用法文本
- logclient: 新增 SetLevel() + Debug() + ENV LOG_LEVEL 支持
- services.yaml: waf 声明 --instance 和 --log-level
This commit is contained in:
qing committed 2026-08-10 11:38:08 +08:00
1 parent 01e67648e0
commit 01c6d0cb1f
3 files changed
+102 -7

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ services:
# --- 安全链路 ---
- name: waf
cmd: bash /opt/micro_servers/waf/_run.sh
args: [] # -c config.yaml 保留在 _run.sh 作为默认值
args: ["--instance", "waf", "--log-level", "info"]
depends_on: [ca, gateway]
sleep_before: 0