global #debug #daemon log 127.0.0.1 local0 defaults log global option httplog frontend unsecured *:80 mode http timeout client 86400000 redirect prefix https://[ha-hostname] code 301 frontend secured bind 0.0.0.0:443 ssl crt /path/to/your/cert/chain.pem mode tcp log global option tcplog timeout client 3600s backlog 4096 maxconn 50000 default_backend www_backend backend www_backend mode tcp option log-health-checks option redispatch option tcplog balance source timeout connect 1s timeout queue 5s timeout server 3600s #SERVERBEGIN server websocket-001 websocket-001.domain.com:8080 maxconn 1000 weight 10 check server websocket-002 websocket-002.domain.com:8080 maxconn 1000 weight 10 check server websocket-003 websocket-003.domain.com:8080 maxconn 1000 weight 10 check #SERVEREND listen stats 0.0.0.0:8888 mode http stats enable option httplog stats show-legends stats uri /haproxy stats realm Haproxy\ Statistics stats refresh 5s stats auth SECRETUSER:SECRETPASS timeout connect 5000ms timeout client 50000ms timeout server 50000ms