From 60faac8557177691414ca99bbb6713beae562dc8 Mon Sep 17 00:00:00 2001 From: bchanot Date: Wed, 21 Oct 2026 18:52:45 +0200 Subject: [PATCH] docs(docker): DEPLOY.md host nginx uses http2 on; (nginx >= 1.25.1), the listen ... http2 form kept for nginx 1.24, both checked with nginx -t --- DEPLOY.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/DEPLOY.md b/DEPLOY.md index 6e8ae7d4..cee17275 100644 --- a/DEPLOY.md +++ b/DEPLOY.md @@ -398,8 +398,12 @@ server { } server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + # nginx >= 1.25.1: HTTP/2 is its own directive (`listen ... http2` is deprecated). + # nginx 1.24 (Ubuntu 24.04 package) does not know `http2 on;`: there, write + # `listen 443 ssl http2;` and `listen [::]:443 ssl http2;` instead. Check with `nginx -v`. + listen 443 ssl; + listen [::]:443 ssl; + http2 on; server_name faunosteo.com; # ssl_certificate + ssl_certificate_key written by certbot