From 57d0a4d8fdab4a41b405b0e884700f049bfaa679 Mon Sep 17 00:00:00 2001 From: Nikolai Mishin Date: Sun, 6 Oct 2024 20:53:54 +0200 Subject: [PATCH] Enable HTTP3 --- docker/app/files/nginx/templates/https/default.conf.tpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/app/files/nginx/templates/https/default.conf.tpl b/docker/app/files/nginx/templates/https/default.conf.tpl index 31e91bc..386cd36 100644 --- a/docker/app/files/nginx/templates/https/default.conf.tpl +++ b/docker/app/files/nginx/templates/https/default.conf.tpl @@ -25,6 +25,11 @@ server { listen [::]:443 ssl; http2 on; + listen 443 quic reuseport; + listen [::]:443 quic reuseport; + http3 on; + add_header Alt-Svc 'h3=":443"; ma=86400'; + server_name ${DOMAIN}; ssl_dhparam /etc/nginx/ssl/ssl-dhparams.pem;