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 736bfc3 commit 1b467f1
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_filter_module.so;
load_module modules/ngx_http_brotli_static_module.so;
Expand Down Expand Up @@ -136,8 +136,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 @@ -147,8 +148,9 @@ http {
}

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

keepalive_timeout 3m;
Expand All @@ -163,8 +165,9 @@ http {
}

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
server_name attestation.app;

include root_attestation.app.conf;
Expand Down

0 comments on commit 1b467f1

Please sign in to comment.