Skip to content

Commit

Permalink
Switch to the newest syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb committed Oct 2, 2024
1 parent eb9f952 commit b29addf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ conf.d/*.conf
!conf.d/.default.conf
!conf.d/no-ssl.default.conf
test/*
!test/vhosts/
!test/vhosts
12 changes: 6 additions & 6 deletions conf.d/templates/example.com.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
server {
listen [::]:443 quic reuseport;
listen 443 quic reuseport;
listen [::]:443 ssl http2;
listen 443 ssl http2;
listen [::]:443 ssl;
listen 443 ssl;

server_name www.example.com;

Expand All @@ -28,10 +28,10 @@ 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;
listen 443 ssl http2;
# listen [::]:443 ssl accept_filter=dataready; # for FreeBSD
# listen 443 ssl accept_filter=dataready; # for FreeBSD
listen [::]:443 ssl;
listen 443 ssl;

# The host name to respond to
server_name example.com;
Expand Down
4 changes: 2 additions & 2 deletions test/vhosts/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ server {
server {
listen [::]:443 quic reuseport;
listen 443 quic reuseport;
listen [::]:443 ssl http2 default_server;
listen 443 ssl http2 default_server;
listen [::]:443 ssl default_server;
listen 443 ssl default_server;

server_name _;

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

server_name www.secure.server.localhost;

Expand All @@ -16,8 +16,8 @@ server {
server {
listen [::]:443 quic reuseport;
listen 443 quic reuseport;
listen [::]:443 ssl http2;
listen 443 ssl http2;
listen [::]:443 ssl;
listen 443 ssl;

server_name secure.server.localhost;

Expand Down

0 comments on commit b29addf

Please sign in to comment.