bundlewrap/bundles/riot-web/metadata.py
2020-08-18 15:31:52 +02:00

12 lines
340 B
Python

@metadata_reactor
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,
},
},
},
}