12 lines
340 B
Python
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,
|
|
},
|
|
},
|
|
},
|
|
}
|