Merge pull request #78 from ninech/allowed-hosts
add allow all hosts by default
This commit is contained in:
commit
df85563b1d
@ -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.
|
# 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 = ['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.
|
# PostgreSQL database configuration.
|
||||||
DATABASE = {
|
DATABASE = {
|
||||||
|
@ -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_NAME=netbox
|
||||||
DB_USER=netbox
|
DB_USER=netbox
|
||||||
DB_PASSWORD=J5brHrAXFLQSif0K
|
DB_PASSWORD=J5brHrAXFLQSif0K
|
||||||
|
Loading…
Reference in New Issue
Block a user