From 10533ab4c35d98c79973c48f169cdf93843ef226 Mon Sep 17 00:00:00 2001 From: thde Date: Mon, 25 Jun 2018 10:41:31 +0200 Subject: [PATCH] add allow all hosts by default --- configuration/configuration.py | 2 +- netbox.env | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/configuration/configuration.py b/configuration/configuration.py index 7d704ae..f65356e 100644 --- a/configuration/configuration.py +++ b/configuration/configuration.py @@ -26,7 +26,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # 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', socket.gethostname()).split(' ') +ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', '*').split(' ') # PostgreSQL database configuration. DATABASE = { diff --git a/netbox.env b/netbox.env index b4b2b9b..a9958ea 100644 --- a/netbox.env +++ b/netbox.env @@ -1,4 +1,3 @@ -ALLOWED_HOSTS=localhost 0.0.0.0 127.0.0.1 [::1] netbox nginx netboxdocker.docker nginx.netboxdocker.docker DB_NAME=netbox DB_USER=netbox DB_PASSWORD=J5brHrAXFLQSif0K