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']: if node.metadata['nginx']['use_ssl_for_all_connections']:
files['/etc/nginx/sites/{}'.format(domain)]['needs'].add('action:letsencrypt_update_certificates') files['/etc/nginx/sites/{}'.format(domain)]['needs'].add('action:letsencrypt_update_certificates')

View file

@ -204,7 +204,12 @@ nodes['htz.ex42-1048908'] = {
}, },
'extras': True, 'extras': True,
}, },
'vliedel.random.franzi.business': {}, 'vliedel.random.franzi.business': {
'webroot_config': {
'owner': 'vliedel',
'group': 'vliedel',
},
},
'webmail.mx0.kunbox.net': { 'webmail.mx0.kunbox.net': {
'index': 'index.php', 'index': 'index.php',
'php': True, 'php': True,