Create a nginx_certbot_site resource to remove duplication
It creates a folder, the nginx vhost for certbot and HTTP redirects, and also runs certbot and recreates the nginx vhost that includes the TLS cert
This commit is contained in:
@@ -91,12 +91,6 @@ application mastodon_path do
|
||||
vapid_public_key: mastodon_credentials['vapid_public_key']
|
||||
end
|
||||
|
||||
directory "#{mastodon_path}/public/.well-known" do
|
||||
owner node['nginx']['user']
|
||||
group node['nginx']['group']
|
||||
recursive true
|
||||
end
|
||||
|
||||
bundle_install do
|
||||
user "mastodon"
|
||||
deployment true
|
||||
|
||||
Reference in New Issue
Block a user