Advertisement
trupsalms

Untitled

Feb 7th, 2021
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 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 https
  37. bind public-ip:443
  38. mode tcp
  39. tcp-request inspect-delay 5s
  40. tcp-request content accept if { req_ssl_hello_type 1 }
  41.  
  42. use_backend dnsdist if { req_ssl_sni -i doh.example.com }
  43. use_backend nginx if { req_ssl_sni -i nss1.example.com }
  44. use_backend nginx if { req_ssl_sni -i dot.example.com }
  45.  
  46. default_backend dnsdist
  47.  
  48. backend dnsdist
  49. mode tcp
  50. option ssl-hello-chk
  51. server dnsdist 127.0.0.1:443
  52.  
  53. backend nginx
  54. mode tcp
  55. option ssl-hello-chk
  56. server nginx 127.0.0.2:443 check
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement