From 34a1f7acd87778ec58cdd995469bb412f63e242d Mon Sep 17 00:00:00 2001 From: doorking12 <112318465+doorking12@users.noreply.github.com> Date: Wed, 26 Apr 2023 12:19:59 -0700 Subject: [PATCH] Update ALLOWED_HOSTS example --- configuration/configuration.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configuration/configuration.py b/configuration/configuration.py index 18bfd01..e16fda8 100644 --- a/configuration/configuration.py +++ b/configuration/configuration.py @@ -56,7 +56,9 @@ _BASE_DIR = dirname(dirname(abspath(__file__))) # This is a list of valid fully-qualified domain names (FQDNs) for the NetBox server. NetBox will not permit write # 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'] +# Example: ALLOWED_HOSTS = localhost 127.0.0.1 netbox.example.com netbox.internal.local +# or +# Example: ALLOWED_HOSTS = * ALLOWED_HOSTS = environ.get('ALLOWED_HOSTS', '*').split(' ') # ensure that '*' or 'localhost' is always in ALLOWED_HOSTS (needed for health checks) if '*' not in ALLOWED_HOSTS and 'localhost' not in ALLOWED_HOSTS: