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.
This commit is contained in:
Gildardo Adrian Maravilla Jacome
2025-03-11 17:35:17 -06:00
committed by GitHub
parent 82b51c1fa7
commit d4e5b9c2de

View File

@@ -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%>;
<%