From b68c64041e13b1b59f5785572fbd784e251924f8 Mon Sep 17 00:00:00 2001 From: lf Date: Sun, 2 Oct 2016 21:01:29 -0600 Subject: [PATCH] Allow multiple ALLOWED_HOSTS on docker Change ALLOWED_HOSTS to be a space delimited list. --- netbox/netbox/configuration.docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/netbox/configuration.docker.py b/netbox/netbox/configuration.docker.py index 81993ee21..c57aca6f4 100644 --- a/netbox/netbox/configuration.docker.py +++ b/netbox/netbox/configuration.docker.py @@ -9,7 +9,7 @@ import os # access to the server via any other hostnames. The first FQDN in the list will be treated as the preferred name. # # Example: ALLOWED_HOSTS = ['netbox.example.com', 'netbox.internal.local'] -ALLOWED_HOSTS = [os.environ.get('ALLOWED_HOSTS', '')] +ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', '').split(' ') # PostgreSQL database configuration. DATABASE = {