Create certbot site before normal site

This commit is contained in:
Basti 2022-02-18 12:23:14 -06:00
parent 163b12efbc
commit 910817a7d4
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72
1 changed files with 2 additions and 2 deletions

View File

@ -12,6 +12,8 @@ end
# No Discourse host, stop here # No Discourse host, stop here
return if upstream_ip_addresses.empty? return if upstream_ip_addresses.empty?
nginx_certbot_site domain
template "#{node['nginx']['dir']}/sites-available/#{domain}" do template "#{node['nginx']['dir']}/sites-available/#{domain}" do
source "nginx_conf.erb" source "nginx_conf.erb"
owner 'www-data' owner 'www-data'
@ -28,5 +30,3 @@ end
nginx_site domain do nginx_site domain do
action :enable action :enable
end end
nginx_certbot_site domain