bw/matrix-dimension switch to generic vhost name

This commit is contained in:
Sophie Schiller 2021-07-04 20:58:56 +02:00
parent 71a1a4d59b
commit aa639dc913
3 changed files with 5 additions and 4 deletions

View file

@ -34,13 +34,14 @@ defaults = {
}
@metadata_reactor.provides(
'nginx/vhosts',
'nginx/vhosts/matrix-dimension',
)
def nginx_config(metadata):
return {
'nginx': {
'vhosts': {
metadata.get('matrix-dimension/url'): {
'matrix-dimension': {
'domain': metadata.get('matrix-dimension/url'),
'webroot': '/var/www/{}/webapp/'.format(metadata.get('matrix-dimension/url')),
'do_not_set_content_security_headers': True,
'max_body_size': '50M',