# Autobase HAProxy Configuration global maxconn 100 log stdout local0 stats timeout 30s defaults log global mode tcp option tcplog retries 3 timeout connect 5s timeout client 30m timeout server 30m listen primary bind *:5433 mode tcp option httpchk http-check expect status 200 default-server inter 3s fall 3 rise 2 on-marked-down shutdown-sessions server patroni1 patroni:5432 maxconn 100 check port 8008 listen redis bind *:6379 mode tcp option tcp-check tcp-check send PING\r\n tcp-check expect string +PONG server redis1 redis:6379 check inter 3s fall 3 rise 2 listen stats bind *:7000 mode http stats enable stats uri / stats refresh 10s stats show-legends stats show-node stats auth admin:admin