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 dc4443a commit 8a6b351
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 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 All @@ -14,6 +14,8 @@ events {
}

http {
http2 on;

root /var/empty;

include mime.types;
Expand Down Expand Up @@ -119,8 +121,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 @@ -130,8 +132,8 @@ http {
}

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

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

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

include root_element.grapheneos.org.conf;
Expand Down

0 comments on commit 8a6b351

Please sign in to comment.