From 871341dd4b64bd424cf8c8ed65bf125d557ab907 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Mon, 1 Jun 2020 10:53:19 +0200 Subject: [PATCH] bundles/riot-web: add nginx metadata --- bundles/riot-web/metadata.py | 12 ++++++++++++ .../extras/htz.ex42-1048908/chat.franzi.business | 8 ++++++++ 2 files changed, 20 insertions(+) create mode 100644 bundles/riot-web/metadata.py create mode 100644 data/nginx/files/extras/htz.ex42-1048908/chat.franzi.business diff --git a/bundles/riot-web/metadata.py b/bundles/riot-web/metadata.py new file mode 100644 index 0000000..85ec9fb --- /dev/null +++ b/bundles/riot-web/metadata.py @@ -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 diff --git a/data/nginx/files/extras/htz.ex42-1048908/chat.franzi.business b/data/nginx/files/extras/htz.ex42-1048908/chat.franzi.business new file mode 100644 index 0000000..bf0987f --- /dev/null +++ b/data/nginx/files/extras/htz.ex42-1048908/chat.franzi.business @@ -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/; + }