How to setup haproxy to connect to backend server using HTTP/3 QUIC?

How to setup haproxy to connect to backend server using HTTP/3 QUIC?

I am able to configure HAProxy to to present itself as an HTTP/3 server by following instruction here: https://www.haproxy.com/blog/announcing-haproxy-2-6/

bind :443 ssl crt server.pem alpn h2,http/1.1
http-response set-header alt-svc "h3=\":443\";ma=900;"

But what do I need to put in haproxy.cfg to to indicate to HAProxy that the backend server supports HTTP/3 and it should use QUIC protocol to connect to it? I tried the same quic4@ prefix but it didn't seem to do anything.

server s1 [email protected]:443

답변1

You need this line also to enable quic protocol ;

# enables HTTP/3 over QUIC
bind quic4@:443 ssl crt /etc/haproxy/certs/foo.com/cert.pem alpn h3

관련 정보