bundles/riot-web: add nginx metadata
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit

This commit is contained in:
Franzi 2020-06-01 10:53:19 +02:00
parent c4330f866b
commit 871341dd4b
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 20 additions and 0 deletions

View 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

View file

@ -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/;
}