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

This commit is contained in:
Paul 2024-07-12 08:15:23 +02:00
parent 0ab34ab312
commit 47b97c97cc

View File

@ -172,7 +172,11 @@ frontend fe_http from {{ haproxy.config.namespace }}
http-request set-var(req.host) req.hdr(Host) http-request set-var(req.host) req.hdr(Host)
http-request set-var(req.accesshash) str(),concat(,req.src,),concat(-,req.host,) http-request set-var(req.accesshash) str(),concat(,req.src,),concat(-,req.host,)
## Returns
http-request return status 200 content-type text/plain string "User-agent: *\r\nAllow: /" if robots_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/>date: %[var(txn.httpdate)]<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/>date: %[var(txn.httpdate)]<br/>srchash: %[var(txn.srchash)]</body></html>" if self_host path_info
{%- if haproxy.config.geoip.enabled %} {%- if haproxy.config.geoip.enabled %}
## GeoIP ## GeoIP
{{ geoip() }} {{ geoip() }}
@ -240,7 +244,7 @@ frontend fe_https from {{ haproxy.config.namespace }}
## Returns ## Returns
http-request return status 200 content-type text/plain string "User-agent: *\r\nAllow: /" if robots_txt http-request return status 200 content-type text/plain string "User-agent: *\r\nAllow: /" if robots_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/plain string "Contact: mailto:{{ haproxy.config.syscontact }}" if security_txt
http-request return status 200 content-type text/html lf-string "host: %H\ndate: %[var(txn.httpdate)]\nsrchash: %[var(txn.srchash)]\n" if self_host path_info http-request return status 200 content-type "text/html; charset=utf-8" lf-string "<html><body>host: %H<br/>date: %[var(txn.httpdate)]<br/>srchash: %[var(txn.srchash)]</body></html>" if self_host path_info
## Headers ## Headers
http-request set-header X-Proxy-Id "%H" http-request set-header X-Proxy-Id "%H"