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

This commit is contained in:
bchanot committed 2026-10-21 18:52:45 +02:00
1 parent 49b1849a2a
commit 60faac8557
1 file changed
+6 -2
+6 -2
View File
@@ -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