Skip to content

Commit

Permalink
replace deprecated http2 listen parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Apr 24, 2024
1 parent 56360c9 commit e4ee865
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# nginx 1.24.x
# nginx 1.26.x

load_module modules/ngx_http_brotli_static_module.so;

Expand All @@ -14,6 +14,8 @@ events {
}

http {
http2 on;

root /var/empty;

include mime.types;
Expand Down Expand Up @@ -127,8 +129,8 @@ http {
}

server {
listen 443 default_server ssl http2 backlog=4096;
listen [::]:443 default_server ssl http2 backlog=4096;
listen 443 default_server ssl backlog=4096;
listen [::]:443 default_server ssl backlog=4096;
ssl_reject_handshake on;

# https://trac.nginx.org/nginx/ticket/2012
Expand All @@ -138,8 +140,8 @@ http {
}

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 443 ssl;
listen [::]:443 ssl;
server_name seamlessupdate.app www.seamlessupdate.app;

include snippets/security-headers.conf;
Expand All @@ -151,8 +153,8 @@ http {
}

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 443 ssl;
listen [::]:443 ssl;
server_name releases.grapheneos.org;

include root_releases.grapheneos.org.conf;
Expand Down Expand Up @@ -284,8 +286,8 @@ http {
}

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 443 ssl;
listen [::]:443 ssl;
server_name apps.grapheneos.org;

include root_apps.grapheneos.org.conf;
Expand Down

0 comments on commit e4ee865

Please sign in to comment.