From 88057d3f0656336ac507ebcf573da08bdaffedd3 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Sun, 16 Jun 2024 19:44:45 -0700 Subject: [PATCH] Updated to new http2 syntax --- content/blog/lightweight-gitc-docker-compose.md | 5 +++-- content/blog/no-response-default-nginx.md | 10 ++++++---- content/blog/podman-nginx-tcpv6-http2-ready.md | 5 +++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/content/blog/lightweight-gitc-docker-compose.md b/content/blog/lightweight-gitc-docker-compose.md index 91dbf0a..981f9c9 100644 --- a/content/blog/lightweight-gitc-docker-compose.md +++ b/content/blog/lightweight-gitc-docker-compose.md @@ -162,8 +162,9 @@ server { } server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; + http2 on; server_name GIT.SERVER.URL; ssl_certificate /path/to/chain; diff --git a/content/blog/no-response-default-nginx.md b/content/blog/no-response-default-nginx.md index d5cf035..d619c96 100644 --- a/content/blog/no-response-default-nginx.md +++ b/content/blog/no-response-default-nginx.md @@ -38,8 +38,9 @@ Under standard HTTPS, a SSL handshake occurs. Though this seems pointless if all ```nginx server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; + http2 on; ssl_reject_handshake on; server_name _; @@ -59,8 +60,9 @@ server { } server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; + http2 on; ssl_reject_handshake on; server_name _; diff --git a/content/blog/podman-nginx-tcpv6-http2-ready.md b/content/blog/podman-nginx-tcpv6-http2-ready.md index 5931a66..664a2d1 100644 --- a/content/blog/podman-nginx-tcpv6-http2-ready.md +++ b/content/blog/podman-nginx-tcpv6-http2-ready.md @@ -166,8 +166,9 @@ server { # .... } server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; + http2 on; # ... } ```