This commit is contained in:
parent
1fe65245d5
commit
0ab34ab312
@ -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 "<h1>403 forbidden</h1>" if !internal
|
||||
http-response return status 403 content-type text/html string "<h1>403 forbidden</h1>" unless internal
|
||||
{%- endmacro -%}
|
||||
|
||||
{%- macro head() -%}
|
||||
@ -172,7 +172,7 @@ frontend fe_http from {{ haproxy.config.namespace }}
|
||||
http-request set-var(req.host) req.hdr(Host)
|
||||
http-request set-var(req.accesshash) str(),concat(,req.src,),concat(-,req.host,)
|
||||
|
||||
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
|
||||
{%- if haproxy.config.geoip.enabled %}
|
||||
## GeoIP
|
||||
{{ geoip() }}
|
||||
|
Loading…
Reference in New Issue
Block a user