From 1133713c1595b94a097f034714dad0f1c1a089b7 Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Wed, 11 Jul 2018 00:35:22 +0200 Subject: [PATCH] Add option for more secret keys in secret config --- uwsgi-python/templates/secret_config.py.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/uwsgi-python/templates/secret_config.py.j2 b/uwsgi-python/templates/secret_config.py.j2 index 4fe5c96..20aae5b 100644 --- a/uwsgi-python/templates/secret_config.py.j2 +++ b/uwsgi-python/templates/secret_config.py.j2 @@ -1 +1,6 @@ secret_key = '{{ (2**2048)|random }}' +{% if app_secret_config_keys is defined %} +{% for key in app_secret_config_keys %} +{{key}} = '{{ (2**2048)|random }}' +{% endfor %} +{% endif %} -- GitLab