Last active
July 9, 2018 09:53
-
-
Save vdchuyen/94a8894f6547a3e1d0da286d9c879533 to your computer and use it in GitHub Desktop.
Samples haproxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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