nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive

This commit is contained in:
Girish Ramakrishnan
2020-06-30 16:00:52 -07:00
parent c1e6b47fd6
commit 6648f41f3d

View File

@@ -42,18 +42,17 @@ server {
server {
<% if (vhost) { -%>
server_name <%= vhost %>;
listen 443 http2;
listen 443 ssl http2;
<% if (hasIPv6) { -%>
listen [::]:443 http2;
listen [::]:443 ssl http2;
<% } -%>
<% } else { -%>
listen 443 http2 default_server;
listen 443 ssl http2 default_server;
<% if (hasIPv6) { -%>
listen [::]:443 http2 default_server;
listen [::]:443 ssl http2 default_server;
<% } -%>
<% } -%>
ssl on;
# paths are relative to prefix and not to this file
ssl_certificate <%= certFilePath %>;
ssl_certificate_key <%= keyFilePath %>;