Commit f0034c0f authored by Lukáš Lalinský's avatar Lukáš Lalinský

Log the Host header

parent 63e7aa88
Pipeline #20410 passed with stage
in 33 seconds
......@@ -111,10 +111,14 @@ userlist users_{{.Name}}
frontend fe_proxy
bind *:80
bind *:443 ssl crt {{$.SSLDir}} alpn h2,http/1.1
capture request header Host len 20
acl is_health path_beg /_health
acl is_letsencrypt path_beg /.well-known/acme-challenge
use_backend be_utils if is_health
use_backend be_letsencrypt if is_letsencrypt
{{range $site := .Sites}}
{{"\t"}}acl domain_{{.Name}} hdr(Host) -i {{.Domain}}
{{"\t"}}acl domain_{{.Name}}_80 hdr(Host) -i {{.Domain}}:80
......
......@@ -135,11 +135,15 @@ userlist users_example2
frontend fe_proxy
bind *:80
bind *:443 ssl crt /etc/haproxy/ssl/ alpn h2,http/1.1
capture request header Host len 20
acl is_health path_beg /_health
acl is_letsencrypt path_beg /.well-known/acme-challenge
use_backend be_utils if is_health
use_backend be_letsencrypt if is_letsencrypt
acl domain_example hdr(Host) -i example.com
acl domain_example_80 hdr(Host) -i example.com:80
acl domain_example_443 hdr(Host) -i example.com:443
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment