Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #---------------------------------------------------------------------
  2. # Example configuration. See the full configuration manual online.
  3. #
  4. # http://www.haproxy.org/download/1.7/doc/configuration.txt
  5. #
  6. #---------------------------------------------------------------------
  7.  
  8. global
  9. maxconn 20000
  10. log 127.0.0.1 local0
  11. user haproxy
  12. chroot /usr/share/haproxy
  13. pidfile /run/haproxy.pid
  14. daemon
  15.  
  16. frontend main
  17. bind :80
  18. mode tcp
  19. option dontlognull
  20. option forwardfor except 127.0.0.0/8
  21. maxconn 8000
  22. timeout client 30s
  23. use_backend nginx if !{ ssl_fc }
  24.  
  25. default_backend socksproxy
  26.  
  27. backend nginx
  28. mode http
  29. server static 127.0.0.1:8885 check
  30.  
  31. backend socksproxy
  32. mode tcp
  33. server socksproxy1 127.0.0.1:53 check
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement