Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. global
  2. log /dev/log local0
  3. log /dev/log local1 notice
  4. chroot /var/lib/haproxy
  5. maxconn 2048
  6. stats timeout 30s
  7. user haproxy
  8. group haproxy
  9. daemon
  10.  
  11. defaults
  12. log global
  13. mode http
  14. option httplog
  15. option dontlognull
  16. option forwardfor
  17. # option http-server-close
  18. timeout connect 5000
  19. timeout client 5000
  20. timeout server 5000
  21.  
  22. listen stats
  23. bind *:8181
  24. stats enable
  25. stats uri /
  26. stats realm Haproxy\ Statistics
  27. stats auth username:password
  28. stats uri /haproxy?stats
  29.  
  30. frontend http_home
  31. bind 10.20.1.15:80
  32. bind *:443 ssl crt-list /etc/ssl/crt-list.txt
  33. redirect scheme https code 301 if !{ ssl_fc }
  34. http-response set-header Strict-Transport-Security max-age=31536000;\ includeSubdomains;\ preload
  35. use_backend http_backend if { hdr(host) -i privetdrive.net }
  36. use_backend http_backend if { hdr_beg(host) -i www.privetdrive.net }
  37. use_backend unifi_backend if { hdr_beg(host) -i unifi.privetdrive.net }
  38. use_backend unms_backend if { hdr_beg(host) -i unms.privetdrive.net }
  39. use_backend quake_backend if { hdr_beg(host) -i quake.privetdrive.net }
  40. use_backend http_backend if { hdr_dom(host) -i sundsvallbbq.se }
  41. use_backend letsencrypt-backend if { path_beg /.well-known/acme-challenge/ }
  42. default_backend http_backend
  43.  
  44. backend unifi_backend
  45. server unifi 10.20.1.11:8080 check
  46.  
  47. backend unms_backend
  48. server unms 10.20.1.12:80 check
  49.  
  50. backend quake_backend
  51. server q3a 10.20.1.5:27960 check
  52.  
  53. backend letsencrypt-backend
  54. server letsencrypt 127.0.0.1:8888
  55.  
  56. backend http_backend
  57. server webserver 10.20.1.25:80 check
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement