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:
1 parent
49b1849a2a
commit
60faac8557
1 file changed
+6
-2
@@ -398,8 +398,12 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
# nginx >= 1.25.1: HTTP/2 is its own directive (`listen ... http2` is deprecated).
|
||||||
listen [::]:443 ssl http2;
|
# 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;
|
server_name faunosteo.com;
|
||||||
|
|
||||||
# ssl_certificate + ssl_certificate_key written by certbot
|
# ssl_certificate + ssl_certificate_key written by certbot
|
||||||
|
|||||||
Reference in new issue
Block a user