From 83bf3e1cd17e6a1ba67f4bfb7152e6d5c7c0e963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Gremaud?= Date: Tue, 14 Jul 2026 20:34:40 +0200 Subject: [PATCH] fix: default settings --- osiris/settings.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/osiris/settings.py b/osiris/settings.py index 7813507..9b6ee97 100644 --- a/osiris/settings.py +++ b/osiris/settings.py @@ -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", "osiris.legrems.xyz").split( + "," + ) + if o ]