From 0c502580c2d81d87540ea3785b1467a7893bfd0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Tue, 2 Jun 2020 16:16:30 +0200 Subject: [PATCH] Fix the condition for the Let's Encrypt cert in the template The line contained an extra ! --- site-cookbooks/kosmos_gitea/templates/default/nginx_conf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site-cookbooks/kosmos_gitea/templates/default/nginx_conf.erb b/site-cookbooks/kosmos_gitea/templates/default/nginx_conf.erb index 6dff6f4..4f67da8 100644 --- a/site-cookbooks/kosmos_gitea/templates/default/nginx_conf.erb +++ b/site-cookbooks/kosmos_gitea/templates/default/nginx_conf.erb @@ -4,7 +4,7 @@ upstream _gitea { } server { -<% if File.exist?(@ssl_cert) && !File.exist?(@ssl_key) -%> +<% if File.exist?(@ssl_cert) && File.exist?(@ssl_key) -%> listen 443 ssl http2; listen [::]:443 ssl http2; server_name <%= @server_name %>;