Skip to content

Instantly share code, notes, and snippets.

@davidbirdsong
Last active September 26, 2016 18:27
Show Gist options
  • Save davidbirdsong/b39a98567bc33930004f3e87ba5af428 to your computer and use it in GitHub Desktop.
Save davidbirdsong/b39a98567bc33930004f3e87ba5af428 to your computer and use it in GitHub Desktop.
frontend gp-tls
bind 10.0.1.1:443 ssl crt /tmp/certs
bind 127.0.0.1:8001
mode tcp
log 127.0.0.1:5114 local2
option contstats
tcp-request inspect-delay 10s
tcp-request content accept if HTTP
tcp-request content accept if { src 127.0.0.1 }
acl api ssl_fc_sni -i api.foo.com
acl api hdr_dom(host) -i api.foo.com
tcp-request content reject
use_backend cdn-parsers if ! HTTP
use_backend api_b if api
default_backend auth-proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment