From d7e415147644816264d8eed65a520e8685b52e73 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Thu, 6 Jul 2023 14:47:37 +0000 Subject: [PATCH] Use new http2 on; directive to enable HTTP/2 in /etc/nginx/nginx.conf instead of in individual conf files --- cockpit.conf | 4 ++-- exozyme.conf | 5 +++-- forgejo.conf | 4 ++-- guacamole.conf | 4 ++-- iacore.conf | 4 ++-- jupyterhub.conf | 4 ++-- mastodon.conf | 4 ++-- nextcloud.conf | 4 ++-- nvpie.conf | 4 ++-- pages.conf | 8 ++++---- peertube.conf | 4 ++-- pranav.conf | 4 ++-- redirect.conf | 4 ++-- safetwitch.conf | 4 ++-- synapse.conf | 4 ++-- woodpecker.conf | 4 ++-- xtex.conf | 4 ++-- 17 files changed, 37 insertions(+), 36 deletions(-) diff --git a/cockpit.conf b/cockpit.conf index dfe13c8..dae2122 100644 --- a/cockpit.conf +++ b/cockpit.conf @@ -1,6 +1,6 @@ server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; server_name portal.exozy.me; include conf.d/ssl; diff --git a/exozyme.conf b/exozyme.conf index cea231a..f3f633e 100644 --- a/exozyme.conf +++ b/exozyme.conf @@ -8,8 +8,9 @@ server { } server { - listen 443 ssl http2 default_server; - listen [::]:443 ssl http2 default_server; + listen 443 ssl default_server; + listen [::]:443 ssl default_server; + server_name exozy.me; include conf.d/ssl; diff --git a/forgejo.conf b/forgejo.conf index 768daeb..d1ca301 100644 --- a/forgejo.conf +++ b/forgejo.conf @@ -1,6 +1,6 @@ server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; server_name git.exozy.me; include conf.d/ssl; diff --git a/guacamole.conf b/guacamole.conf index 3d80169..c334773 100644 --- a/guacamole.conf +++ b/guacamole.conf @@ -1,6 +1,6 @@ server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; server_name desk.exozy.me; include conf.d/ssl; diff --git a/iacore.conf b/iacore.conf index 521aaaf..367ae26 100644 --- a/iacore.conf +++ b/iacore.conf @@ -1,6 +1,6 @@ server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; server_name www.1a-insec.net; ssl_certificate /etc/letsencrypt/live/www.1a-insec.net/fullchain.pem; diff --git a/jupyterhub.conf b/jupyterhub.conf index 9683051..10035c0 100644 --- a/jupyterhub.conf +++ b/jupyterhub.conf @@ -1,6 +1,6 @@ server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; server_name hub.exozy.me; diff --git a/mastodon.conf b/mastodon.conf index a24d240..87294db 100644 --- a/mastodon.conf +++ b/mastodon.conf @@ -14,8 +14,8 @@ upstream streaming { proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=CACHE:10m inactive=7d max_size=1g; server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; server_name social.exozy.me; include conf.d/ssl; diff --git a/nextcloud.conf b/nextcloud.conf index 2c28f41..854eba0 100644 --- a/nextcloud.conf +++ b/nextcloud.conf @@ -10,8 +10,8 @@ map $arg_v $asset_immutable { server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; server_name cloud.exozy.me; # Enable symlinks diff --git a/nvpie.conf b/nvpie.conf index 415e166..3e86f99 100644 --- a/nvpie.conf +++ b/nvpie.conf @@ -1,6 +1,6 @@ server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; server_name neovoid.is-cool.dev; ssl_certificate /etc/letsencrypt/live/neovoid.is-cool.dev/fullchain.pem; diff --git a/pages.conf b/pages.conf index 6a66d36..37276d8 100644 --- a/pages.conf +++ b/pages.conf @@ -1,6 +1,6 @@ server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; server_name ~^(\d)\.exozy\.me; include conf.d/ssl; @@ -23,8 +23,8 @@ server { } server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; server_name ~^(?.+)\.exozy\.me; include conf.d/ssl; diff --git a/peertube.conf b/peertube.conf index 6b3a8f9..424c9a5 100644 --- a/peertube.conf +++ b/peertube.conf @@ -4,8 +4,8 @@ # THIRD PARTY MODULES: None. server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; server_name tube.exozy.me; ## diff --git a/pranav.conf b/pranav.conf index b471365..3150f4d 100644 --- a/pranav.conf +++ b/pranav.conf @@ -1,6 +1,6 @@ server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; server_name karawale.in *.karawale.in; ssl_certificate /home/pranav/.local/share/cert/karawale.in/fullchain.pem; diff --git a/redirect.conf b/redirect.conf index 4d43cc7..989b308 100644 --- a/redirect.conf +++ b/redirect.conf @@ -1,6 +1,6 @@ server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; server_name ta180m.exozy.me; include conf.d/ssl; diff --git a/safetwitch.conf b/safetwitch.conf index ddb248f..14ca9bc 100644 --- a/safetwitch.conf +++ b/safetwitch.conf @@ -1,6 +1,6 @@ server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; server_name safetwitch.exozy.me; include conf.d/ssl; diff --git a/synapse.conf b/synapse.conf index 05e1bd0..39df602 100644 --- a/synapse.conf +++ b/synapse.conf @@ -1,6 +1,6 @@ server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; server_name chat.exozy.me; diff --git a/woodpecker.conf b/woodpecker.conf index 644bcc7..c7e459d 100644 --- a/woodpecker.conf +++ b/woodpecker.conf @@ -1,6 +1,6 @@ server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; server_name ci.exozy.me; include conf.d/ssl; diff --git a/xtex.conf b/xtex.conf index f8911d6..3a2cca5 100644 --- a/xtex.conf +++ b/xtex.conf @@ -1,6 +1,6 @@ server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; server_name blog.xtexx.ml; ssl_certificate /etc/letsencrypt/live/blog.xtexx.ml/fullchain.pem;