Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. global
  2. log /dev/log local0
  3. log /dev/log local1 notice
  4. chroot /var/lib/haproxy
  5. stats socket /run/haproxy/admin.sock mode 660 level admin
  6. stats timeout 30s
  7. daemon
  8. user haproxy
  9. group haproxy
  10.  
  11. # Default ciphers to use on SSL-enabled listening sockets.
  12. # For more information, see ciphers(1SSL).
  13. tune.ssl.default-dh-param 2048
  14. ssl-default-bind-ciphers LONG LIST OF CIPHERS
  15.  
  16. defaults
  17. log global
  18. balance leastconn
  19. mode http
  20. option httplog
  21. option dontlognull
  22. option redispatch
  23. option http-server-close
  24. option forwardfor
  25. option abortonclose
  26. maxconn 3000
  27. retries 3
  28. timeout queue 1m
  29. timeout connect 10s
  30. timeout client 5m
  31. timeout server 5m
  32. timeout http-request 5s
  33. timeout http-keep-alive 10s
  34. timeout check 10s
  35.  
  36. frontend www-http
  37. bind xxx.xxx.xxx.xxx:80
  38. reqadd X-Forwarded-Proto: http
  39. redirect scheme https if !{ ssl_fc }
  40. default_backend wordpress-backend
  41.  
  42. frontend www-https
  43. bind xxx.xxx.xxx.xxx:443 ssl no-sslv3 crt /etc/ssl/private/default.pem crt /etc/ssl/private/
  44. rspadd Strict-Transport-Security: max-age=15768000
  45. reqadd X-Forwarded-Proto: https
  46. default_backend wordpress-backend
  47.  
  48. backend wordpress-backend
  49. option httpchk HEAD /haphealth
  50. server wordpress-1 xxx.xxx.xxx.xxx:8081 maxconn 10 check
  51. server wordpress-2 xxx.xxx.xxx.xxx:8081 maxconn 10 check
  52. server wordpress-3 xxx.xxx.xxx.xxx:8081 maxconn 10 check
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement