Skip to content

Instantly share code, notes, and snippets.

@ryzy
Created March 13, 2016 00:23
Show Gist options
  • Save ryzy/a9f0de502d520a84850b to your computer and use it in GitHub Desktop.
Save ryzy/a9f0de502d520a84850b 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