global log /dev/log local0 warning log /dev/log local1 warning chroot /var/lib/haproxy user haproxy group haproxy daemon nbproc 1 maxconn 25000 stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners stats timeout 30s stats socket ipv4@0.0.0.0:9999 level admin # Default SSL material locations ca-base /etc/ssl/certs crt-base /etc/ssl/private # Default ciphers to use on SSL-enabled listening sockets. # For more information, see ciphers(1SSL). This list is from: # https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/ # An alternative list with additional directives can be obtained from # https://mozilla.github.io/server-side-tls/ssl-config-generator/?server=haproxy ssl-default-bind-ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS ssl-default-bind-options no-sslv3 tune.ssl.default-dh-param 2048 defaults log global mode http option httplog option http-server-close option dontlognull option forwardfor option contstats retries 3 timeout queue 30s maxconn 20000 backlog 10000 timeout connect 60s timeout client 30s timeout server 900s timeout tunnel 0s errorfile 400 /etc/haproxy/errors/400.http errorfile 403 /etc/haproxy/errors/403.http errorfile 408 /etc/haproxy/errors/408.http errorfile 500 /etc/haproxy/errors/500.http errorfile 502 /etc/haproxy/errors/502.http errorfile 503 /etc/haproxy/errors/503.http errorfile 504 /etc/haproxy/errors/504.http frontend parity-rpc bind 0.0.0.0:8545 default_backend parity-rpc stats enable stats hide-version stats realm Haproxy\ Statistics stats uri /haproxy?stats stats auth qn:haproxy backend parity-rpc balance leastconn option redispatch # local storage server 159.65.33.68 159.65.33.68:8545 check maxconn 40 frontend parity-ws bind 0.0.0.0:8546 timeout client 25920s # detect capacity issues in production farm acl MAIN_not_enough_capacity nbsrv(parity-ws-backend) le 2 # failover traffic to backup farm use_backend parity-ws-backup if MAIN_not_enough_capacity default_backend parity-ws-backend backend parity-ws-backend balance leastconn option redispatch timeout server 25920s # local storage server 159.65.33.68 159.65.33.68:8546 check maxconn 1 server 157.245.217.84 157.245.217.84:8546 check maxconn 1 backend parity-ws-backup option allbackups server 161.35.102.21 161.35.102.21:8546 check maxconn 1500 server 143.244.163.47 143.244.163.47:8546 check maxconn 1500 backup