diff options
author | Mike Crute <mike@crute.us> | 2021-01-27 04:41:00 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2021-01-27 04:41:00 +0000 |
commit | 763b810ca1a9d755205e49b1246025b83abb5132 (patch) | |
tree | 923df4e956b36ef95e86ff9c51c5bbad26fd076f /netbox/config-patch1.diff | |
parent | cd833bc2852ec204fbaecde7ada56798eba005da (diff) | |
download | dockerfiles-763b810ca1a9d755205e49b1246025b83abb5132.tar.bz2 dockerfiles-763b810ca1a9d755205e49b1246025b83abb5132.tar.xz dockerfiles-763b810ca1a9d755205e49b1246025b83abb5132.zip |
Add netbox
Diffstat (limited to 'netbox/config-patch1.diff')
-rw-r--r-- | netbox/config-patch1.diff | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/netbox/config-patch1.diff b/netbox/config-patch1.diff new file mode 100644 index 0000000..be5b068 --- /dev/null +++ b/netbox/config-patch1.diff | |||
@@ -0,0 +1,26 @@ | |||
1 | --- a/opt/netbox/netbox/netbox/configuration.py | ||
2 | +++ b/opt/netbox/netbox/netbox/configuration.py | ||
3 | @@ -4,11 +4,13 @@ | ||
4 | # # | ||
5 | ######################### | ||
6 | |||
7 | +import urllib3; urllib3.disable_warnings() | ||
8 | + | ||
9 | # This is a list of valid fully-qualified domain names (FQDNs) for the NetBox server. NetBox will not permit write | ||
10 | # access to the server via any other hostnames. The first FQDN in the list will be treated as the preferred name. | ||
11 | # | ||
12 | # Example: ALLOWED_HOSTS = ['netbox.example.com', 'netbox.internal.local'] | ||
13 | -ALLOWED_HOSTS = [] | ||
14 | +ALLOWED_HOSTS = ['*'] | ||
15 | |||
16 | # PostgreSQL database configuration. See the Django documentation for a complete list of available parameters: | ||
17 | # https://docs.djangoproject.com/en/stable/ref/settings/#databases | ||
18 | @@ -51,7 +53,7 @@ | ||
19 | # For optimal security, SECRET_KEY should be at least 50 characters in length and contain a mix of letters, numbers, and | ||
20 | # symbols. NetBox will not run without this defined. For more information, see | ||
21 | # https://docs.djangoproject.com/en/stable/ref/settings/#std:setting-SECRET_KEY | ||
22 | -SECRET_KEY = '' | ||
23 | +SECRET_KEY = 'dummy setup value will get cleared after setup run' | ||
24 | |||
25 | |||
26 | ######################### | ||