mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
add dataplaneapi for --save-map-files, and bugfix some small things. custom domain/backendip working pretty well now
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user