haproxy.cfg 483 B

1234567891011121314151617181920
  1. frontend frontend
  2. bind 0.0.0.0:80
  3. mode tcp
  4. log global
  5. option tcplog
  6. timeout client 3600s
  7. backlog 4096
  8. maxconn 50000
  9. default_backend backend
  10. backend backend
  11. mode tcp
  12. option log-health-checks
  13. option redispatch
  14. option tcplog
  15. balance roundrobin
  16. server backend_host $BACKEND_HOST:$BACKEND_PORT
  17. timeout connect 2s
  18. timeout queue 5s
  19. timeout server 3600s