Franziska Kunsmann
2d42e5f7dd
All checks were successful
bundlewrap/pipeline/head This commit looks good
14 lines
372 B
Python
14 lines
372 B
Python
@metadata_reactor.provides(
|
|
'nginx/vhosts',
|
|
)
|
|
def nginx_config(metadata):
|
|
return {
|
|
'nginx': {
|
|
'vhosts': {
|
|
metadata.get('riot-web/url', None): {
|
|
'webroot': '/var/www/{}/webapp/'.format(metadata.get('riot-web/url', None)),
|
|
'extras': True,
|
|
},
|
|
},
|
|
},
|
|
}
|