|
bind *:{{ o["port"] }} ssl crt /certs/letsencrypt/ alpn http/1.1 crt /certs/haproxy/ alpn http/1.1 |
You can enable HTTP/2 to make better use of network resources and decrease perceived latency by enabling multiple concurrent requests/responses to be multiplexed over a single TCP connection. This can be done by replacing alpn http/1.1 with alpn h2,http/1.1.
What this new order does is it uses HTTP/2 if supported, otherwise switch back to HTTP/1.1.
Source: https://www.haproxy.com/documentation/hapee/latest/load-balancing/protocols/http-2/
docker-easy-haproxy/src/templates/bind.j2
Line 2 in b52c413
You can enable HTTP/2 to make better use of network resources and decrease perceived latency by enabling multiple concurrent requests/responses to be multiplexed over a single TCP connection. This can be done by replacing alpn http/1.1 with alpn h2,http/1.1.
What this new order does is it uses HTTP/2 if supported, otherwise switch back to HTTP/1.1.
Source: https://www.haproxy.com/documentation/hapee/latest/load-balancing/protocols/http-2/