Commit 44a8598a authored by Mathieu Courcelles's avatar Mathieu Courcelles

Fixes allowed hosts for Kubernetes

parent 04c60362
Pipeline #29679854 passed with stages
in 6 minutes and 44 seconds
# Copyright 2013-2017 Mathieu Courcelles
# Copyright 2013-2018 Mathieu Courcelles
# Mike Tyers's lab / IRIC / Universite de Montreal
# Import standard libraries
from socket import gethostname, gethostbyname
# Import Django related libraries
......@@ -45,7 +46,7 @@ EMAIL_SUBJECT_PREFIX = os.environ.get('SITE_NAME', '[CLMSVault] ')
# Hosts/domain names that are valid for this site; required if DEBUG is False
# See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', '').split()
ALLOWED_HOSTS.append('0.0.0.0')
ALLOWED_HOSTS += ['0.0.0.0', gethostname(), gethostbyname(gethostname())]
DATABASES = {
'default': {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment