fix(haproxy): ACL 404 для HAProxy 2.8 и deploy-скрипт

Исправлен синтаксис !(host_ext path_autodiscover) и порядок http-request/use_backend. Скрипт deploy сохраняет stats auth с сервера.
This commit is contained in:
PTah
2026-06-20 17:06:09 +10:00
parent ade8e4cafa
commit 088eec369f
2 changed files with 68 additions and 2 deletions
+3 -2
View File
@@ -136,12 +136,13 @@ frontend fe_http
# Zabbix: 403 только при неверном IP (fail2ban haproxy-zabbix-403)
http-request deny deny_status 403 if host_zabbix !src_zabbix_allowed
http-request deny deny_status 404 if host_ext !path_autodiscover
http-request deny deny_status 404 if !host_zabbix !host_autodiscover !host_ext
use_backend be_exchange_http if host_autodiscover
use_backend be_exchange_http if host_ext path_autodiscover
use_backend be_zabbix if host_zabbix
http-request deny deny_status 404 if !host_zabbix !host_autodiscover !(host_ext path_autodiscover)
backend be_exchange_http
mode http
option forwardfor