bundlewrap/bundles/riot-web/metadata.py

13 lines
340 B
Python
Raw Normal View History

2020-08-18 13:27:55 +00:00
@metadata_reactor
2020-06-01 08:53:19 +00:00
def nginx_config(metadata):
return {
'nginx': {
'vhosts': {
2020-08-18 13:27:55 +00:00
metadata.get('riot-web/url', None): {
'webroot': '/var/www/{}/webapp/'.format(metadata.get('riot-web/url', None)),
2020-06-01 08:53:19 +00:00
'extras': True,
},
},
},
2020-08-18 13:27:55 +00:00
}