1
0
mirror of https://github.com/taigaio/taiga-back synced 2025-10-05 15:52:48 +02:00

fix(docker): Make options for webhooks configurable via env vars in docker

This commit is contained in:
Stephanie Lakner
2024-04-03 14:18:18 +02:00
committed by David Barragán Merino
parent 5fea915648
commit 45029c703c

View File

@@ -43,7 +43,9 @@ LANGUAGE_CODE = os.getenv("LANGUAGE_CODE", "en-us")
INSTANCE_TYPE = "D"
WEBHOOKS_ENABLED = True
WEBHOOKS_ENABLED = os.getenv('WEBHOOKS_ENABLED', 'True') == 'True'
WEBHOOKS_ALLOW_PRIVATE_ADDRESS = os.getenv('WEBHOOKS_ALLOW_PRIVATE_ADDRESS', 'False') == 'True'
WEBHOOKS_ALLOW_REDIRECTS = os.getenv('WEBHOOKS_ALLOW_REDIRECTS', 'False') == 'True'
# Setting DEFAULT_PROJECT_SLUG_PREFIX to false
# removes the username from project slug