42 lines
933 B
INI
42 lines
933 B
INI
global
|
|
log stdout format raw local0 info
|
|
maxconn 8192
|
|
|
|
defaults
|
|
log global
|
|
mode http
|
|
option httplog
|
|
option dontlognull
|
|
option forwardfor
|
|
timeout connect 5000
|
|
timeout client 50000
|
|
timeout server 50000
|
|
|
|
frontend https
|
|
bind *:80
|
|
|
|
acl is_public hdr_end(host) -i public.local.ipv64.net
|
|
acl is_backend hdr_end(host) -i backend.local.ipv64.net
|
|
acl is_stats hdr_end(host) -i stats.local.ipv64.net
|
|
|
|
use_backend web_public if is_public
|
|
use_backend web_backend if is_backend
|
|
use_backend stats if is_stats
|
|
|
|
default_backend web_public
|
|
|
|
backend web_public
|
|
server node1 172.30.0.11:80 cookie node1 check
|
|
|
|
backend web_backend
|
|
server node1 172.30.0.13:80 cookie node1 check
|
|
|
|
backend stats
|
|
mode http
|
|
stats enable
|
|
stats uri /
|
|
stats realm Haproxy\ Statistics
|
|
stats auth worker:p2x338
|
|
stats admin if TRUE
|
|
|