Fix healthcheck

This commit is contained in:
Gabriel Augendre 2020-08-21 13:50:17 +02:00
parent d53d4f9823
commit 3afdd108b5

View file

@ -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: