Commit ce232d31 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB

Add SERVER_HOSTNAME to containerized deployment

parent 5ee304c9
......@@ -41,6 +41,9 @@ DATABASES = {
}
}
# Main server "hostname" - a little hacky but OK
SERVER_HOSTNAME = SERVER_FQDN.split('.')[0]
# Update allowed hosts from environment variables -----------------------------
hosts_from_env = os.environ.get('DJANGO_ALLOWED_HOSTS', None)
if hosts_from_env is not None:
......
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