diff --git a/site-cookbooks/kosmos-parity/templates/default/nginx_conf_parity_letsencrypt.erb b/site-cookbooks/kosmos-parity/templates/default/nginx_conf_parity_letsencrypt.erb index a4e8ad5..e01b3f6 100644 --- a/site-cookbooks/kosmos-parity/templates/default/nginx_conf_parity_letsencrypt.erb +++ b/site-cookbooks/kosmos-parity/templates/default/nginx_conf_parity_letsencrypt.erb @@ -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 -%> }