Fix healthcheck
This commit is contained in:
parent
d53d4f9823
commit
3afdd108b5
1 changed files with 2 additions and 2 deletions
|
@ -45,9 +45,9 @@ EMAIL_BACKEND = "anymail.backends.mailgun.EmailBackend"
|
||||||
DEBUG = os.getenv("DEBUG", "true").lower() == "true"
|
DEBUG = os.getenv("DEBUG", "true").lower() == "true"
|
||||||
TESTING = os.getenv("TESTING", "false").lower() == "true"
|
TESTING = os.getenv("TESTING", "false").lower() == "true"
|
||||||
|
|
||||||
ALLOWED_HOSTS = []
|
ALLOWED_HOSTS = ["localhost"] # Required for healthcheck
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
ALLOWED_HOSTS.extend(["localhost", "127.0.0.1"])
|
ALLOWED_HOSTS.extend(["127.0.0.1"])
|
||||||
|
|
||||||
HOSTS = os.getenv("HOSTS")
|
HOSTS = os.getenv("HOSTS")
|
||||||
if HOSTS:
|
if HOSTS:
|
||||||
|
|
Reference in a new issue