Skip to content

Instantly share code, notes, and snippets.

@IngussNeilands
Forked from ryzy/haproxy.cfg
Created June 22, 2017 14:04
Show Gist options
  • Save IngussNeilands/dd2ee639146d8f2d1025a79f7f7cd38f to your computer and use it in GitHub Desktop.
Save IngussNeilands/dd2ee639146d8f2d1025a79f7f7cd38f to your computer and use it in GitHub Desktop.
HAProxy - essentials for HTTP/2
frontend https-in
mode tcp
bind *:443 ssl crt /etc/ssl/dummy.pem alpn h2,http/1.1
use_backend nodes-http2 if { ssl_fc_alpn -i h2 }
default_backend nodes-http
backend nodes-http
server node1 web.server:80 check
backend nodes-http2
mode tcp
server node1 web.server:81 check send-proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment