kn4thx

haproxy1

Jan 26th, 2024
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. # Automaticaly generated, dont edit manually.
  2. # Generated on: 2024-01-26 20:40
  3.  
  4.  
  5. frontend plat
  6. bind 0.0.0.0:443 name 0.0.0.0:443 ssl crt-list /var/etc/haproxy/plat.crt_list
  7. mode http
  8. log global
  9. option http-keep-alive
  10. option forwardfor
  11. acl https ssl_fc
  12. http-request set-header X-Forwarded-Proto http if !https
  13. http-request set-header X-Forwarded-Proto https if https
  14. timeout client 30000
  15. acl plat24 var(txn.txnhost) -m str -i website.org
  16. acl aclcrt_plat var(txn.txnhost) -m reg -i ^website\.org(:([0-9]){1,5})?$
  17. http-request set-var(txn.txnhost) hdr(host)
  18. http-request add-header X-Forwarded-Proto https if aclcrt_plat
  19. use_backend plat_ipvANY if plat24 aclcrt_plat
  20. use_backend plat_ipvANY if aclcrt_plat
  21.  
  22. frontend platred
  23. bind 0.0.0.0:80 name 0.0.0.0:80
  24. mode http
  25. log global
  26. option http-keep-alive
  27. option forwardfor
  28. acl https ssl_fc
  29. http-request set-header X-Forwarded-Proto http if !https
  30. http-request set-header X-Forwarded-Proto https if https
  31. timeout client 30000
  32. http-request redirect scheme https unless { ssl_fc }
  33. http-request add-header X-Forwarded-Proto http
  34. default_backend plat_ipvANY
  35. default_backend plat_ipvANY
  36.  
  37.  
  38. backend plat_ipvANY
  39. mode http
  40. id 102
  41. log global
  42. http-check send meth GET
  43. timeout connect 30000
  44. timeout server 30000
  45. retries 3
  46. load-server-state-from-file global
  47. option httpchk
  48. server plat23 192.168.77.99:80 id 103 check inter 1000
Add Comment
Please, Sign In to add comment