Skip to content

Instantly share code, notes, and snippets.

@danievanzyl
Forked from voduytuan/haproxy.cfg
Created November 17, 2021 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danievanzyl/c5cfd8aed6d1e08f4a9de9c3d83752ac to your computer and use it in GitHub Desktop.
Save danievanzyl/c5cfd8aed6d1e08f4a9de9c3d83752ac to your computer and use it in GitHub Desktop.
Sample pass through SSL on Haproxy
...
#create new frontend to process 443
frontend https_frontend
bind *:443
mode tcp
option tcplog
default_backend farm_docker2
acl host_docker2 hdr(host) -i docker2.com
use_backend farm_docker2 if host_docker2
...
#Define backend for above frontend
backend farm_docker2
mode tcp
balance roundrobin
server web01 127.0.0.1:5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment