bundles/riot-web: add nginx metadata
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
This commit is contained in:
parent
c4330f866b
commit
871341dd4b
2 changed files with 20 additions and 0 deletions
12
bundles/riot-web/metadata.py
Normal file
12
bundles/riot-web/metadata.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
@metadata_processor
|
||||
def nginx_config(metadata):
|
||||
return {
|
||||
'nginx': {
|
||||
'vhosts': {
|
||||
metadata['riot-web']['url']: {
|
||||
'webroot': '/var/www/chat.franzi.business/webapp/',
|
||||
'extras': True,
|
||||
},
|
||||
},
|
||||
},
|
||||
}, DEFAULTS, DONE
|
|
@ -0,0 +1,8 @@
|
|||
location /.well-known/matrix/ {
|
||||
alias /etc/matrix-synapse/wellknown/;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
}
|
||||
|
||||
location /.well-known/acme-challenge/ {
|
||||
alias /var/run/acme/acme-challenge/;
|
||||
}
|
Loading…
Reference in a new issue