From 910817a7d4ddba82d2678f08ba47808422bdb75d Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Fri, 18 Feb 2022 12:23:14 -0600 Subject: [PATCH] Create certbot site before normal site --- site-cookbooks/kosmos_discourse/recipes/nginx.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site-cookbooks/kosmos_discourse/recipes/nginx.rb b/site-cookbooks/kosmos_discourse/recipes/nginx.rb index 9621fa6..3f7602d 100644 --- a/site-cookbooks/kosmos_discourse/recipes/nginx.rb +++ b/site-cookbooks/kosmos_discourse/recipes/nginx.rb @@ -12,6 +12,8 @@ end # No Discourse host, stop here return if upstream_ip_addresses.empty? +nginx_certbot_site domain + template "#{node['nginx']['dir']}/sites-available/#{domain}" do source "nginx_conf.erb" owner 'www-data' @@ -28,5 +30,3 @@ end nginx_site domain do action :enable end - -nginx_certbot_site domain