Advertisement
Tsaukpaetra

Haproxy.cfg (8-31-14)

Aug 31st, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. global
  2. log 127.0.0.1 local1 debug
  3. maxconn 4096
  4. chroot /usr/share/haproxy
  5. uid 99
  6. gid 99
  7. daemon
  8. tune.ssl.default-dh-param 2048
  9.  
  10. defaults
  11. log global
  12. mode http
  13. option httplog
  14. option dontlognull
  15. retries 3
  16. option redispatch
  17. option http-server-close
  18. maxconn 2000
  19. timeout connect 5000
  20. timeout client 50000
  21. timeout server 50000
  22.  
  23.  
  24. frontend Listener
  25. bind *:8080 ssl crt /usr/local/etc/nginx/test.pem
  26. acl is_websocket hdr_dom(host) -i sparkgateway.tsaukpaetra.com
  27. acl is_manager hdr_dom(host) -i manager.remote.tsaukpaetra.com
  28.  
  29.  
  30. use_backend SparkGateway if is_websocket
  31. use_backend manager if is_manager
  32.  
  33. default_backend www
  34.  
  35. backend www
  36. timeout server 30s
  37. server www1 127.0.0.1:8000
  38.  
  39. backend SparkGateway
  40. timeout server 600s
  41. timeout tunnel 30s
  42. server SparkGateway 127.0.0.1:8000
  43.  
  44. backend manager
  45. timeout server 30s
  46. # http-request add-header X-Proto https
  47.  
  48. server manager 192.168.1.170:443 check ssl verify none
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement