From a20dcec401f765519535b19768043f7e38cf4cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Colombaro?= Date: Wed, 24 May 2023 22:58:05 +0200 Subject: [PATCH] Add support for HTTP/3 --- conf.d/.default.conf | 2 ++ conf.d/templates/example.com.conf | 4 ++++ test/vhosts/default.conf | 2 ++ test/vhosts/secure.server.localhost.conf | 4 ++++ 4 files changed, 12 insertions(+) diff --git a/conf.d/.default.conf b/conf.d/.default.conf index 9c50994..910034f 100644 --- a/conf.d/.default.conf +++ b/conf.d/.default.conf @@ -10,6 +10,8 @@ # returning 444 "No Response". server { + listen [::]:443 quic reuseport; + listen 443 quic reuseport; listen [::]:443 ssl http2 default_server; listen 443 ssl http2 default_server; diff --git a/conf.d/templates/example.com.conf b/conf.d/templates/example.com.conf index 1b55bab..80a2f33 100644 --- a/conf.d/templates/example.com.conf +++ b/conf.d/templates/example.com.conf @@ -10,6 +10,8 @@ # the right one. # https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/#server-name-if server { + listen [::]:443 quic reuseport; + listen 443 quic reuseport; listen [::]:443 ssl http2; listen 443 ssl http2; @@ -24,6 +26,8 @@ server { server { + listen [::]:443 quic reuseport; + listen 443 quic reuseport; # listen [::]:443 ssl http2 accept_filter=dataready; # for FreeBSD # listen 443 ssl http2 accept_filter=dataready; # for FreeBSD listen [::]:443 ssl http2; diff --git a/test/vhosts/default.conf b/test/vhosts/default.conf index 782c88e..d938def 100644 --- a/test/vhosts/default.conf +++ b/test/vhosts/default.conf @@ -9,6 +9,8 @@ server { server { + listen [::]:443 quic reuseport; + listen 443 quic reuseport; listen [::]:443 ssl http2 default_server; listen 443 ssl http2 default_server; diff --git a/test/vhosts/secure.server.localhost.conf b/test/vhosts/secure.server.localhost.conf index 9faa833..6db90f2 100644 --- a/test/vhosts/secure.server.localhost.conf +++ b/test/vhosts/secure.server.localhost.conf @@ -1,4 +1,6 @@ server { + listen [::]:443 quic reuseport; + listen 443 quic reuseport; listen [::]:443 ssl http2; listen 443 ssl http2; @@ -12,6 +14,8 @@ server { } server { + listen [::]:443 quic reuseport; + listen 443 quic reuseport; listen [::]:443 ssl http2; listen 443 ssl http2;