Advertisement
kwabenasapong

Untitled

Dec 22nd, 2022
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 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 expose-fd listeners
  6. stats timeout 30s
  7. user haproxy
  8. group haproxy
  9. daemon
  10.  
  11. # Default SSL material locations
  12. ca-base /etc/ssl/certs
  13. crt-base /etc/ssl/private
  14.  
  15. # See: https://ssl-config.mozilla.org/#server=haproxy&server-version=2.0.3&config=intermediate
  16. ssl-default-bind-ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
  17. ssl-default-bind-ciphersuites TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256
  18. ssl-default-bind-options ssl-min-ver TLSv1.2 no-tls-tickets
  19.  
  20. defaults
  21. log global
  22. mode http
  23. option httplog
  24. option dontlognull
  25. timeout connect 5000
  26. timeout client 50000
  27. timeout server 50000
  28. errorfile 400 /etc/haproxy/errors/400.http
  29. errorfile 403 /etc/haproxy/errors/403.http
  30. errorfile 408 /etc/haproxy/errors/408.http
  31. errorfile 500 /etc/haproxy/errors/500.http
  32. errorfile 502 /etc/haproxy/errors/502.http
  33. errorfile 503 /etc/haproxy/errors/503.http
  34. errorfile 504 /etc/haproxy/errors/504.http
  35.  
  36. frontend main
  37. bind *:80
  38. bind *:433 ssl crt /etc/ssl/certs/kbs.pem
  39. mode http
  40. default_backend servers
  41.  
  42. backend servers
  43. balance roundrobin
  44. server web-01 34.232.68.81:80 check
  45. server web-02 54.198.29.36:80 check
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement