Skip to content
Snippets Groups Projects
Commit 542fb643 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

feat: add CSRF_TRUSTED_ORIGINS to docker env variables generation

parent b43ff1bb
No related branches found
No related tags found
2 merge requests!11Update dev branch,!9REDMINE_ISSUE-18861 | Montée de version Python 3.12 + django 5 + lib associées
......@@ -14,6 +14,7 @@ services:
environment:
- SECRET_KEY=${SECRET}
- ALLOWED_HOSTS=${DOMAINS:-127.0.0.1}
- CSRF_TRUSTED_ORIGINS=${CSRF_TRUSTED_ORIGINS}
- DEBUG=${DEBUG:-False}
- TIME_ZONE=Europe/Paris
- LOG_LEVEL=${LOG_LEVEL:-INFO}
......
......@@ -10,6 +10,10 @@
# Django ALLOWED_HOST comma separeted values
DOMAINS=localhost,127.0.0.1,geocontrib.dev.neogeo.fr
# External authorized domains to securize request from CSRF attacks.
# Since django 4 each domain should include a schema (ex : `https://` ou `http://`)
CSRF_TRUSTED_ORIGINS=['https://geocontrib.dev.neogeo.fr']
# Port the front will bind on host
#HTTP_PORT=80
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment