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 979efd3 commit 5adbf49
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

error_log syslog:server=unix:/dev/log,nohostname;
# leave stderr open but minimize duplicate logging to it
Expand All @@ -12,6 +12,8 @@ events {
}

http {
http2 on;

root /var/empty;

include mime.types;
Expand Down Expand Up @@ -109,8 +111,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 @@ -120,8 +122,8 @@ http {
}

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

add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
Expand All @@ -136,8 +138,8 @@ http {
}

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 443 ssl;
listen [::]:443 ssl;
server_name mta-sts.mail.grapheneos.org mta-sts.attestation.app mta-sts.discuss.grapheneos.org mta-sts.grapheneos.app mta-sts.grapheneos.ca mta-sts.grapheneos.com mta-sts.grapheneos.dev mta-sts.grapheneos.foundation mta-sts.grapheneos.info mta-sts.grapheneos.net mta-sts.grapheneos.network mta-sts.grapheneos.online mta-sts.grapheneos.org mta-sts.grapheneos.ovh mta-sts.grapheneos.page mta-sts.grapheneos.social mta-sts.matrix.grapheneos.org mta-sts.seamlessupdate.app mta-sts.vanadium.app;

add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
Expand Down

0 comments on commit 5adbf49

Please sign in to comment.