Skip to content
Snippets Groups Projects
Commit ce232d31 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Add SERVER_HOSTNAME to containerized deployment

parent 5ee304c9
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment