bundles/nginx: make sure webroot directory exists
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
fb27b4b00d
commit
48cc865892
2 changed files with 9 additions and 1 deletions
|
@ -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')
|
||||
|
|
|
@ -204,7 +204,12 @@ nodes['htz.ex42-1048908'] = {
|
|||
},
|
||||
'extras': True,
|
||||
},
|
||||
'vliedel.random.franzi.business': {},
|
||||
'vliedel.random.franzi.business': {
|
||||
'webroot_config': {
|
||||
'owner': 'vliedel',
|
||||
'group': 'vliedel',
|
||||
},
|
||||
},
|
||||
'webmail.mx0.kunbox.net': {
|
||||
'index': 'index.php',
|
||||
'php': True,
|
||||
|
|
Loading…
Reference in a new issue