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 25, 2024
1 parent dc4443a commit 4298cf4
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 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 Down Expand Up @@ -119,8 +119,9 @@ 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;
http2 on;
ssl_reject_handshake on;

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

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

keepalive_timeout 3m;
Expand Down Expand Up @@ -175,8 +177,9 @@ http {
}

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

include root_element.grapheneos.org.conf;
Expand Down

0 comments on commit 4298cf4

Please sign in to comment.