Fix the Let's Encrypt config for Parity

The SSL port wasn't set in the variables
This commit is contained in:
Greg Karékinian 2017-05-08 22:58:39 +02:00
parent f1d48b9a68
commit 58c9ccc48c

View File

@ -1,9 +1,6 @@
# Generated by Chef
server {
listen 80; # For Let's Encrypt
<% if File.exist?(@ssl_cert) && File.exist?(@ssl_key) -%>
listen <%= @external_port %> ssl http2;
<% end -%>
server_name <%= @server_name %>;
@ -13,9 +10,4 @@ server {
location /.well-known {
root "/var/www/<%= @server_name %>";
}
<% if File.exist?(@ssl_cert) && File.exist?(@ssl_key) -%>
ssl_certificate <%= @ssl_cert %>;
ssl_certificate_key <%= @ssl_key %>;
<% end -%>
}