-
-
Save matthiasg/ccd8ffd41f98ed70eaf91a81fd1c24dc to your computer and use it in GitHub Desktop.
HAProxy - essentials for HTTP/2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Hi, found this on a google search. That doesn't work, does it? I don't think haproxy (yet?) proxies an
http
backend to ahttp/2
client.When I do something similar with haproxy 1.7.1 (add
alpn h2,http/1.1
to a working https proxy configuration):