Skip to content

Instantly share code, notes, and snippets.

@vdchuyen
Last active July 9, 2018 09:53
Show Gist options
  • Save vdchuyen/94a8894f6547a3e1d0da286d9c879533 to your computer and use it in GitHub Desktop.
Save vdchuyen/94a8894f6547a3e1d0da286d9c879533 to your computer and use it in GitHub Desktop.
Samples haproxy
frontend www-https
bind 0.0.0.0:443
mode tcp
tcp-request inspect-delay 5s
default_backend ssl_default
backend ssl_default
mode http
acl gitlab req_ssl_sni -i gitlab.example.com
acl xxxx req_ssl_sni -i www.example.com
use-server server-git if gitlab
use-server server-xxx if xxxx
option ssl-hello-chk
server server-git 1.1.1.1:443 check
server server-xxx 2.2.2.2:443 check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment