From b4bd4805658672b31c2bc4257242cff32da54a50 Mon Sep 17 00:00:00 2001
From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de>
Date: Mon, 22 Feb 2021 21:20:38 +0100
Subject: [PATCH] Allow configuring PERMITTED_METADATA_DOMAINS in proto3

---
 uwsgi-python/templates/apps/protokollsystem.j2 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/uwsgi-python/templates/apps/protokollsystem.j2 b/uwsgi-python/templates/apps/protokollsystem.j2
index 63a9cbc..e15d159 100644
--- a/uwsgi-python/templates/apps/protokollsystem.j2
+++ b/uwsgi-python/templates/apps/protokollsystem.j2
@@ -39,6 +39,9 @@ URL_PARAMS = ""
 {% if cdn_url is defined %}
 CDN_URL = "{{cdn_url}}"
 {% endif %}
+{% if protokolle_metadata_domain_whitelist is defined %}
+PERMITTED_METADATA_DOMAINS = [ {% for domain in protokolle_metadata_domain_whitelist %} "{{domain}}", {% endfor %} ]
+{% endif %}
 
 PRINTING_ACTIVE = {{ protokolle_printing }}
 PRINTING_SERVER = "{{ protokolle_printing_server }}"
-- 
GitLab