From 0a0708032cd020582fedede59f40ef3b85d1a9bd Mon Sep 17 00:00:00 2001 From: Joep de Jong Date: Wed, 16 Aug 2023 15:13:15 +0300 Subject: [PATCH 1/2] Fix dienst2 host --- dienst2/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dienst2/settings.py b/dienst2/settings.py index 2df95b7..0c959fc 100644 --- a/dienst2/settings.py +++ b/dienst2/settings.py @@ -13,7 +13,7 @@ ADMINS = getaddresses([env("DJANGO_ADMINS", default="")]) MANAGERS = ADMINS -ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default="*").split(",") +ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default="*") INTERNAL_IPS = env.list("INTERNAL_IPS", default="") SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") From ada75cafe3082e4230355898934cb43daed9d34a Mon Sep 17 00:00:00 2001 From: Joep de Jong Date: Wed, 16 Aug 2023 15:17:47 +0300 Subject: [PATCH 2/2] Fix allowed hosts --- dienst2/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dienst2/settings.py b/dienst2/settings.py index 0c959fc..bed8a56 100644 --- a/dienst2/settings.py +++ b/dienst2/settings.py @@ -13,7 +13,7 @@ ADMINS = getaddresses([env("DJANGO_ADMINS", default="")]) MANAGERS = ADMINS -ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default="*") +ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=["*"]) INTERNAL_IPS = env.list("INTERNAL_IPS", default="") SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")