bw/matrix-dimension switch to generic vhost name
This commit is contained in:
parent
71a1a4d59b
commit
aa639dc913
3 changed files with 5 additions and 4 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue