From 1e475d86386d6481bc14a64cd7ffa4269f08af44 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Mon, 1 Jun 2020 13:33:33 +0200 Subject: [PATCH] nodes/htz.ex42-1048908: more nginx vhosts --- .../files/extras/htz.ex42-1048908/franzi.business | 4 ++++ data/nginx/files/extras/htz.ex42-1048908/kunsmann.eu | 9 +++++++++ .../files/extras/htz.ex42-1048908/paste.kunsmann.eu | 5 +++++ nodes/htz/ex42-1048908.py | 12 ++++++++++++ 4 files changed, 30 insertions(+) create mode 100644 data/nginx/files/extras/htz.ex42-1048908/franzi.business create mode 100644 data/nginx/files/extras/htz.ex42-1048908/kunsmann.eu create mode 100644 data/nginx/files/extras/htz.ex42-1048908/paste.kunsmann.eu diff --git a/data/nginx/files/extras/htz.ex42-1048908/franzi.business b/data/nginx/files/extras/htz.ex42-1048908/franzi.business new file mode 100644 index 0000000..a600cd0 --- /dev/null +++ b/data/nginx/files/extras/htz.ex42-1048908/franzi.business @@ -0,0 +1,4 @@ + location /.well-known/matrix/ { + alias /etc/matrix-synapse/wellknown/; + add_header Access-Control-Allow-Origin *; + } diff --git a/data/nginx/files/extras/htz.ex42-1048908/kunsmann.eu b/data/nginx/files/extras/htz.ex42-1048908/kunsmann.eu new file mode 100644 index 0000000..154eb15 --- /dev/null +++ b/data/nginx/files/extras/htz.ex42-1048908/kunsmann.eu @@ -0,0 +1,9 @@ + location / { + return 301 https://franzi.business$request_uri; + } + + location /.well-known/openpgpkey/ { + alias /var/www/kunsmann.eu/.well-known/openpgpkey/; + default_type application/octet-stream; + add_header Access-Control-Allow-Origin * always; + } diff --git a/data/nginx/files/extras/htz.ex42-1048908/paste.kunsmann.eu b/data/nginx/files/extras/htz.ex42-1048908/paste.kunsmann.eu new file mode 100644 index 0000000..93f035d --- /dev/null +++ b/data/nginx/files/extras/htz.ex42-1048908/paste.kunsmann.eu @@ -0,0 +1,5 @@ + autoindex on; + + location = / { + autoindex off; + } diff --git a/nodes/htz/ex42-1048908.py b/nodes/htz/ex42-1048908.py index 638592f..225e5b8 100644 --- a/nodes/htz/ex42-1048908.py +++ b/nodes/htz/ex42-1048908.py @@ -85,11 +85,23 @@ nodes['htz.ex42-1048908'] = { }, 'nginx': { 'vhosts': { + 'franzi.business': { + 'webroot': '/var/www/franzi.business/_site/', + 'extras': True, + }, 'jenkins.kunsmann.eu': { 'proxy': { '/': 'http://localhost:9000/', }, }, + 'kunbox.net': {}, + 'kunsmann.eu': { + 'extras': True, + }, + 'paste.kunsmann.eu': { + 'extras': True, + }, + 'vliedel.random.franzi.business': {}, }, }, 'riot-web': {