This commit is contained in:
parent
a145e0b822
commit
826f6c7613
@ -186,6 +186,12 @@ frontend fe_http from {{ haproxy.config.namespace }}
|
||||
http-request return status 200 content-type text/plain string "Contact: mailto:{{ haproxy.config.syscontact }}" if security_txt
|
||||
http-request return status 200 content-type "text/html; charset=utf-8" lf-string "<html><body>host: %H<br/>country: %[var(proc.country)]<br/>date: %[var(txn.httpdate)]<br/>src: %[var(req.src)]<br/>srchash: %[var(txn.srchash)]</body></html>" if self_host path_info
|
||||
|
||||
{%- if haproxy.config.http_overrides|default([]) %}
|
||||
{%- for override in haproxy.config.http_overrides %}
|
||||
{{ override }}
|
||||
{%- endfor %}
|
||||
{%- endif %}
|
||||
|
||||
{%- if haproxy.config.geoip.enabled %}
|
||||
## GeoIP
|
||||
{{ geoip() }}
|
||||
@ -274,6 +280,13 @@ frontend fe_https from {{ haproxy.config.namespace }}
|
||||
|
||||
http-request redirect location %[req.hdr(Host),map_dom({{ haproxy.config.dir }}/maps/redirects)] code 301 if { req.hdr(Host),map_dom({{ haproxy.config.dir }}/maps/redirects) -m found }
|
||||
http-request deny deny_status 404 unless domains || ua
|
||||
|
||||
{%- if haproxy.config.https_overrides|default([]) %}
|
||||
{%- for override in haproxy.config.https_overrides %}
|
||||
{{ override }}
|
||||
{%- endfor %}
|
||||
{%- endif %}
|
||||
|
||||
{%- if haproxy.config.admin %}
|
||||
use_backend admin if self_host internal
|
||||
{%- endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user