Set ALLOWED_HOSTS
correctly based on base hostname
This commit is contained in:
parent
d93bc2450d
commit
b167cd4ca4
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,8 @@ DEBUG = env("DEBUG")
|
|||
|
||||
SECRET_KEY = env("SECRET_KEY")
|
||||
|
||||
ALLOWED_HOSTS = ["*"]
|
||||
BASE_HOSTNAME = env("BASE_HOSTNAME")
|
||||
ALLOWED_HOSTS = ["*"] if DEBUG else [BASE_HOSTNAME]
|
||||
|
||||
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
|
||||
|
||||
|
@ -200,7 +201,6 @@ WAGTAILSEARCH_BACKENDS = {
|
|||
}
|
||||
}
|
||||
|
||||
BASE_HOSTNAME = env("BASE_HOSTNAME")
|
||||
WAGTAILADMIN_BASE_URL = f"https://{BASE_HOSTNAME}"
|
||||
|
||||
WAGTAIL_FRONTEND_LOGIN_URL = "/admin/login/"
|
||||
|
|
Loading…
Reference in a new issue