Commit 6219cb32 authored by Jaroslaw Surkont's avatar Jaroslaw Surkont
Browse files

Load ALLOWED_HOSTS from env

Close #1
parent 4e5eaa8f
......@@ -46,3 +46,4 @@ CATHSMAPI_CODEBASE=fromlocal
# the Git repository
CATHSMAPI_GITTAG=v0.0.1
ALLOWED_HOSTS = "localhost,127.0.0.1"
\ No newline at end of file
......@@ -45,8 +45,7 @@ del secret_files
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
ALLOWED_HOSTS = ["api01.cathdb.info", ".cathdb.info", "orengoapi01", "localhost",
"127.0.0.1", "127.0.0.1:8000", "0.0.0.0", "192.168.99.1", "131.152.84.4", "172.17.0.1", "192.168.122.1"]
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', 'localhost').split(',')
# SENTRY (logging)
......
......@@ -23,10 +23,6 @@ DATABASES = {
}
}
# allowed hosts
ALLOWED_HOSTS = ['.cathdb.info', 'orengoapi01']
# CACHES = {
# "default": {
# "BACKEND": "django_redis.cache.RedisCache",
......
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