33 lines
720 B
INI
33 lines
720 B
INI
global
|
|
log fd@2 local2
|
|
chroot /var/lib/haproxy
|
|
pidfile /var/run/haproxy.pid
|
|
maxconn 4000
|
|
user haproxy
|
|
group haproxy
|
|
stats socket /var/lib/haproxy/stats expose-fd listeners
|
|
master-worker
|
|
|
|
resolvers docker
|
|
nameserver dns1 127.0.0.11:53
|
|
resolve_retries 3
|
|
timeout resolve 1s
|
|
timeout retry 1s
|
|
hold other 10s
|
|
hold refused 10s
|
|
hold nx 10s
|
|
hold timeout 10s
|
|
hold valid 10s
|
|
hold obsolete 10s
|
|
|
|
frontend fe_web
|
|
bind *:80
|
|
use_backend stat if { path -i /my-stats }
|
|
|
|
backend stat
|
|
stats enable
|
|
stats uri /my-stats
|
|
stats refresh 15s
|
|
stats show-legends
|
|
stats show-node
|