updated haproxy state
This commit is contained in:
parent
057bcbd44c
commit
97adc2124b
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
{%- macro internal() -%}
|
{%- macro internal() -%}
|
||||||
acl internal src -f {{ haproxy.config.dir }}/maps/access
|
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 -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
{%- macro head() -%}
|
{%- macro head() -%}
|
||||||
@ -14,8 +14,8 @@
|
|||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
{%- macro statusresponses() -%}
|
{%- macro statusresponses() -%}
|
||||||
http-response return status 403 content-type text/html string "403 forbidden" if { status 403 }
|
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 "404 not found" if { status 404 }
|
http-response return status 404 content-type text/html string "<h1>404 not found</h1>" if { status 404 }
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
{%- macro httpcheckrules(layer="layer7",inter="2s",fall=5,rise=5) -%}check observe {{ layer }} inter {{ inter }} fall {{ fall }} rise {{ rise }}{%- endmacro -%}
|
{%- macro httpcheckrules(layer="layer7",inter="2s",fall=5,rise=5) -%}check observe {{ layer }} inter {{ inter }} fall {{ fall }} rise {{ rise }}{%- endmacro -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user