fix: default settings

This commit is contained in:
Loïc Gremaud 2026-07-14 20:34:40 +02:00
parent cce608e150
commit 2cf7b283e0
Signed by: Legrems
GPG Key ID: D4620E6DF3E0121D

View File

@ -30,12 +30,16 @@ SECRET_KEY = os.environ.get(
DEBUG = os.environ.get("DJANGO_DEBUG", "1") == "1"
ALLOWED_HOSTS = os.environ.get(
"DJANGO_ALLOWED_HOSTS", "127.0.0.1,localhost,0.0.0.0"
"DJANGO_ALLOWED_HOSTS", "127.0.0.1,localhost,0.0.0.0,osiris.legrems.xyz"
).split(",")
# Needed when reaching the admin from your phone over the LAN or a tunnel.
CSRF_TRUSTED_ORIGINS = [
o for o in os.environ.get("DJANGO_CSRF_TRUSTED_ORIGINS", "").split(",") if o
o
for o in os.environ.get(
"DJANGO_CSRF_TRUSTED_ORIGINS", "https://osiris.legrems.xyz"
).split(",")
if o
]