From c9b72d029d231ffd1c531eb6ad48c5dcf0b10e14 Mon Sep 17 00:00:00 2001 From: Joep de Jong Date: Wed, 16 Aug 2023 14:49:43 +0300 Subject: [PATCH] Add Allowed Hosts --- dienst2/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dienst2/settings.py b/dienst2/settings.py index a9c92c7..2df95b7 100644 --- a/dienst2/settings.py +++ b/dienst2/settings.py @@ -13,7 +13,7 @@ ADMINS = getaddresses([env("DJANGO_ADMINS", default="")]) MANAGERS = ADMINS -ALLOWED_HOSTS = ["*"] +ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default="*").split(",") INTERNAL_IPS = env.list("INTERNAL_IPS", default="") SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")