haproxy-template.cfg 759 B

123456789101112131415161718192021222324252627282930313233
  1. global
  2. daemon
  3. maxconn 500
  4. defaults proxy
  5. mode tcp
  6. timeout connect 5000ms
  7. timeout client 15000ms
  8. timeout server 15000ms
  9. retries 0
  10. frontend tor_proxies
  11. # Less restrictive settings:
  12. # - bind :16379 name proxy
  13. bind 127.0.0.1:16379 name proxy
  14. default_backend bk_node
  15. listen stats
  16. # URL: http://127.0.0.1:16380/stats
  17. bind 127.0.0.1:16380
  18. mode http
  19. stats enable
  20. stats hide-version
  21. stats realm Haproxy\ Statistics
  22. stats uri /stats
  23. # stats auth ha_admin:__PASSWORD__
  24. backend bk_node
  25. log global
  26. # Other: leastconn
  27. balance roundrobin
  28. # SOCKS/HTTP backends: