Skip to content

Instantly share code, notes, and snippets.

@emamulandalib
Last active January 31, 2024 17:43
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emamulandalib/2a613f5308c29518fcbcdc6b3bad3900 to your computer and use it in GitHub Desktop.
Save emamulandalib/2a613f5308c29518fcbcdc6b3bad3900 to your computer and use it in GitHub Desktop.
backend httpbin
balance roundrobin
mode http
server master 192.168.50.10:32009 check check-sni httpbin.example.com sni str(httpbin.example.com) ssl verify none
http-request set-header Host httpbin.example.com
http-request set-header X-Forwarded-For %[src]
http-request set-header X-Forwarded-Port %[dst_port]
http-request add-header X-Forwarded-Proto https if { ssl_fc }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment