From e4c3f5f2f234b34ab2db01aa10518aae2aa3cf88 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 16 Jan 2021 22:04:03 +0100 Subject: [PATCH] nodes/voc.pretalx: add bundle:pretalx --- data/nginx/files/extras/voc.pretalx/pretalx | 13 +++++++++++++ nodes/voc/pretalx.py | 14 ++++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 data/nginx/files/extras/voc.pretalx/pretalx diff --git a/data/nginx/files/extras/voc.pretalx/pretalx b/data/nginx/files/extras/voc.pretalx/pretalx new file mode 100644 index 0000000..8fe2d3f --- /dev/null +++ b/data/nginx/files/extras/voc.pretalx/pretalx @@ -0,0 +1,13 @@ + location /media/ { + alias /opt/pretalx/data/media/; + add_header Content-Disposition 'attachment; filename="$1"'; + expires 7d; + access_log off; + } + + location /static/ { + alias /opt/pretalx/static/; + access_log off; + expires 365d; + add_header Cache-Control "public"; + } diff --git a/nodes/voc/pretalx.py b/nodes/voc/pretalx.py index 6b96803..3f87be5 100644 --- a/nodes/voc/pretalx.py +++ b/nodes/voc/pretalx.py @@ -6,7 +6,7 @@ nodes['voc.pretalx'] = { 'hostname': 'pretalx.c3voc.de', 'bundles': { 'c3voc-addons', -# 'pretalx', + 'pretalx', 'postgresql', }, 'metadata': { @@ -14,9 +14,19 @@ nodes['voc.pretalx'] = { 'vhosts': { 'pretalx': { 'domain': 'pretalx.c3voc.de', -# 'extras': True, + 'proxy': { + '/': { + 'target': 'http://127.0.0.1:8345/', + }, + }, + 'extras': True, }, }, }, + 'pretalx': { + 'version': 'v2.1.1', + 'domain': 'pretalx.c3voc.de', + 'mail_from': 'pretalx@c3voc.de', + }, }, }