bundlewrap/bundles/riot-web/metadata.py

15 lines
372 B
Python
Raw Normal View History

@metadata_reactor.provides(
'nginx/vhosts',
)
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
}