Skip to content

Enable HTTP/2 over HTTPS #38

@grimavatar

Description

@grimavatar

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions