haproxy.cfg 973 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #---------------------------------------------------------------------
  2. # Example configuration for a possible web application. See the
  3. # full configuration options online.
  4. #
  5. # http://haproxy.1wt.eu/download/1.4/doc/configuration.txt
  6. #
  7. #---------------------------------------------------------------------
  8. global
  9. log stdout local2 debug
  10. pidfile /run/haproxy.pid
  11. maxconn 90000
  12. no strict-limits
  13. defaults
  14. mode tcp
  15. log global
  16. option dontlognull
  17. timeout check 30s
  18. maxconn 90000
  19. # This server group is used for final users.
  20. # Each server should point at one foreign Internet address
  21. # SOCKS5 is accepted
  22. listen shadowsocks_turnup
  23. bind 0.0.0.0:1080
  24. mode tcp
  25. option tcp-check
  26. balance roundrobin
  27. timeout server 600000
  28. timeout client 600000
  29. timeout connect 30000
  30. server vnet-0 172.16.115.5:22
  31. listen monitor_mgmt
  32. mode http
  33. bind 127.0.1.1:3389
  34. stats enable
  35. stats admin if TRUE
  36. stats uri /