From 93dedc5321caf6112e7914273bc68a55530017fa Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 9 Sep 2024 12:34:14 -0700 Subject: [PATCH] switch to http2 directive --- http/default.conf | 2 +- http/gitea.conf | 2 +- http/homepage.conf | 2 +- http/mail.conf | 2 +- http/minecraft.conf | 2 +- http/opns.conf | 2 +- http/paas.conf | 2 +- http/pve.conf | 2 +- http/root.conf | 2 +- http/status.conf | 2 +- http/wiki.conf | 2 +- nginx.conf | 3 +++ 12 files changed, 14 insertions(+), 11 deletions(-) diff --git a/http/default.conf b/http/default.conf index 8a1e19f..689ce0f 100644 --- a/http/default.conf +++ b/http/default.conf @@ -1,5 +1,5 @@ server { - listen 443 ssl http2 default_server; + listen 443 ssl default_server; server_name *.tronnet.net; include snippets/ssl-acme.conf; return 301 https://tronnet.net; diff --git a/http/gitea.conf b/http/gitea.conf index 92df222..9ddd79d 100644 --- a/http/gitea.conf +++ b/http/gitea.conf @@ -1,5 +1,5 @@ server { - listen 443 ssl http2; + listen 443 ssl; server_name git.tronnet.net; include snippets/ssl-acme.conf; location / { diff --git a/http/homepage.conf b/http/homepage.conf index 0611230..7336e7e 100644 --- a/http/homepage.conf +++ b/http/homepage.conf @@ -1,5 +1,5 @@ server { - listen 443 ssl http2; + listen 443 ssl; server_name tronnet.net; include snippets/ssl-acme.conf; include snippets/proxy-errors.conf; diff --git a/http/mail.conf b/http/mail.conf index 8fc1005..b07aff4 100644 --- a/http/mail.conf +++ b/http/mail.conf @@ -1,5 +1,5 @@ server { - listen 443 ssl http2; + listen 443 ssl; server_name mail.tronnet.net; include snippets/ssl-acme.conf; location / { diff --git a/http/minecraft.conf b/http/minecraft.conf index b8a43c5..502cc7c 100644 --- a/http/minecraft.conf +++ b/http/minecraft.conf @@ -1,5 +1,5 @@ server { - listen 443 ssl http2; + listen 443 ssl; server_name minecraft.tronnet.net; include snippets/ssl-acme.conf; include snippets/proxy-errors.conf; diff --git a/http/opns.conf b/http/opns.conf index 6ce0571..752825d 100644 --- a/http/opns.conf +++ b/http/opns.conf @@ -1,5 +1,5 @@ server { - listen 443 ssl http2; + listen 443 ssl; server_name opns.tronnet.net; include snippets/ssl-acme.conf; include snippets/proxy-errors.conf; diff --git a/http/paas.conf b/http/paas.conf index 0079d4d..21bca70 100644 --- a/http/paas.conf +++ b/http/paas.conf @@ -1,5 +1,5 @@ server { - listen 443 ssl http2; + listen 443 ssl; server_name paas.tronnet.net; include snippets/ssl-acme.conf; include snippets/error-pages.conf; diff --git a/http/pve.conf b/http/pve.conf index b4e8733..aceaeb9 100644 --- a/http/pve.conf +++ b/http/pve.conf @@ -1,5 +1,5 @@ server { - listen 443 ssl http2; + listen 443 ssl; server_name pve.tronnet.net; include snippets/ssl-acme.conf; location / { diff --git a/http/root.conf b/http/root.conf index db59cb8..37c4da2 100644 --- a/http/root.conf +++ b/http/root.conf @@ -1,5 +1,5 @@ server { - listen 443 ssl http2; + listen 443 ssl; server_name root.tronnet.net; include snippets/ssl-acme.conf; include snippets/proxy-errors.conf; diff --git a/http/status.conf b/http/status.conf index 2d83cfd..3f7fce5 100644 --- a/http/status.conf +++ b/http/status.conf @@ -1,5 +1,5 @@ server { - listen 443 ssl http2; + listen 443 ssl; server_name status.tronnet.net; include snippets/ssl-acme.conf; include snippets/proxy-errors.conf; diff --git a/http/wiki.conf b/http/wiki.conf index 5f41bb1..e0e965e 100644 --- a/http/wiki.conf +++ b/http/wiki.conf @@ -1,5 +1,5 @@ server { - listen 443 ssl http2; + listen 443 ssl; server_name wiki.tronnet.net; include snippets/ssl-acme.conf; include snippets/proxy-errors.conf; diff --git a/nginx.conf b/nginx.conf index 13afc34..a6112ac 100644 --- a/nginx.conf +++ b/nginx.conf @@ -34,6 +34,9 @@ http { # proxy parameters include proxy-params.conf; + # enable http2 + http2 on; + # include http include http/*.conf; }