updated haproxy state
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Paul 2024-07-27 08:54:11 +02:00
parent a145e0b822
commit 826f6c7613

View File

@ -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/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 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 %} {%- if haproxy.config.geoip.enabled %}
## GeoIP ## GeoIP
{{ 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 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 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 %} {%- if haproxy.config.admin %}
use_backend admin if self_host internal use_backend admin if self_host internal
{%- endif %} {%- endif %}