mirror of
https://github.com/caprover/caprover
synced 2025-10-30 01:57:03 +00:00
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:
committed by
GitHub
parent
82b51c1fa7
commit
d4e5b9c2de
@@ -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%>;
|
||||
<%
|
||||
|
||||
Reference in New Issue
Block a user