Skip to content

Commit

Permalink
Add support for HTTP/3
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb committed May 24, 2023
1 parent 7c407ad commit a935bdb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conf.d/.default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 4 additions & 0 deletions conf.d/templates/example.com.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions test/vhosts/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 4 additions & 0 deletions test/vhosts/secure.server.localhost.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
server {
listen [::]:443 quic reuseport;
listen 443 quic reuseport;
listen [::]:443 ssl http2;
listen 443 ssl http2;

Expand All @@ -12,6 +14,8 @@ server {
}

server {
listen [::]:443 quic reuseport;
listen 443 quic reuseport;
listen [::]:443 ssl http2;
listen 443 ssl http2;

Expand Down

0 comments on commit a935bdb

Please sign in to comment.