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 736bfc3 commit ee20afe
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_filter_module.so;
load_module modules/ngx_http_brotli_static_module.so;
Expand All @@ -15,6 +15,8 @@ events {
}

http {
http2 on;

root /var/empty;

include mime.types;
Expand Down Expand Up @@ -136,8 +138,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 @@ -147,8 +149,8 @@ http {
}

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

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

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

include root_attestation.app.conf;
Expand Down

0 comments on commit ee20afe

Please sign in to comment.