add dataplaneapi for --save-map-files, and bugfix some small things. custom domain/backendip working pretty well now

This commit is contained in:
Thomas Lynch
2021-12-27 20:38:20 +11:00
parent 9557c06aa1
commit 06b28c8650
5 changed files with 49 additions and 7 deletions

View File

@@ -12,10 +12,13 @@ defaults
timeout client 50000ms
timeout server 50000ms
program api
command dataplaneapi -f /etc/haproxy/dataplaneapi.hcl --update-map-files
no option start-on-reload
frontend http-in
option httplog
bind *:80
bind *:443
acl is_existing_vhost hdr(host),lower,map_str(/etc/haproxy/hosts.map) -m found
http-request silent-drop unless is_existing_vhost