bundles/nginx: make sure webroot directory exists
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2020-10-18 18:55:00 +02:00
parent fb27b4b00d
commit 48cc865892
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 9 additions and 1 deletions

View file

@ -57,5 +57,8 @@ for domain, config in node.metadata.get('nginx', {}).get('vhosts', {}).items():
},
}
if not 'webroot' in config:
directories['/var/www/{}'.format(domain)] = config.get('webroot_config', {})
if node.metadata['nginx']['use_ssl_for_all_connections']:
files['/etc/nginx/sites/{}'.format(domain)]['needs'].add('action:letsencrypt_update_certificates')