updated haproxy state

This commit is contained in:
Paul 2023-07-24 23:37:11 +02:00
parent 057bcbd44c
commit 97adc2124b

View File

@ -6,7 +6,7 @@
{%- macro internal() -%}
acl internal src -f {{ haproxy.config.dir }}/maps/access
http-response return status 403 content-type text/html string "403 forbidden" if !internal
http-response return status 403 content-type text/html string "<h1>403 forbidden</h1>" if !internal
{%- endmacro -%}
{%- macro head() -%}
@ -14,8 +14,8 @@
{%- endmacro -%}
{%- macro statusresponses() -%}
http-response return status 403 content-type text/html string "403 forbidden" if { status 403 }
http-response return status 404 content-type text/html string "404 not found" if { status 404 }
http-response return status 403 content-type text/html string "<h1>403 forbidden</h1>" if { status 403 }
http-response return status 404 content-type text/html string "<h1>404 not found</h1>" if { status 404 }
{%- endmacro -%}
{%- macro httpcheckrules(layer="layer7",inter="2s",fall=5,rise=5) -%}check observe {{ layer }} inter {{ inter }} fall {{ fall }} rise {{ rise }}{%- endmacro -%}