Skip to content

Instantly share code, notes, and snippets.

@bassu
Forked from ryzy/haproxy.cfg
Created April 2, 2016 18:03
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 bassu/69cbd980a2e81a5fc4c4baca5fbded3a to your computer and use it in GitHub Desktop.
Save bassu/69cbd980a2e81a5fc4c4baca5fbded3a 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