From d4e5b9c2deb7f3530bb11d0cde1e55c7cdf5c90d Mon Sep 17 00:00:00 2001 From: Gildardo Adrian Maravilla Jacome Date: Tue, 11 Mar 2025 17:35:17 -0600 Subject: [PATCH] Change "listen ... http2" directive The current version of nginx used gives this warning: nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead In order to avoid this warning the configuration is updated to the new configuration. --- template/server-block-conf.ejs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/template/server-block-conf.ejs b/template/server-block-conf.ejs index 264aa84..f33a6f6 100644 --- a/template/server-block-conf.ejs +++ b/template/server-block-conf.ejs @@ -36,7 +36,8 @@ server { } if (s.hasSsl) { %> - listen 443 ssl http2; + listen 443 ssl; + http2 on; ssl_certificate <%-s.crtPath%>; ssl_certificate_key <%-s.keyPath%>; <%