ci: detect nginx brotli via config test
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
2026-05-12 16:53:53 +08:00
parent d641840098
commit 188c6704db
2 changed files with 3 additions and 7 deletions

View File

@@ -301,11 +301,6 @@ render_nginx_brotli_directives() {
return
fi
if ! nginx -V 2>&1 | grep -qi brotli; then
echo " # Brotli 未启用:当前 nginx 未编译或加载 brotli 模块。"
return
fi
local brotli_snippet
brotli_snippet="$(mktemp)"
cat >"${brotli_snippet}" <<'EOF'