aboutsummaryrefslogtreecommitdiff
path: root/netbox/config-patch2.diff
diff options
context:
space:
mode:
Diffstat (limited to 'netbox/config-patch2.diff')
-rw-r--r--netbox/config-patch2.diff15
1 files changed, 9 insertions, 6 deletions
diff --git a/netbox/config-patch2.diff b/netbox/config-patch2.diff
index 5983cc1..69162e4 100644
--- a/netbox/config-patch2.diff
+++ b/netbox/config-patch2.diff
@@ -1,5 +1,5 @@
1--- a/opt/netbox/netbox/netbox/configuration.py 1--- a/opt/netbox/netbox/netbox/configuration.py 2021-07-11 22:24:55.365668931 +0000
2+++ b/opt/netbox/netbox/netbox/configuration.py 2+++ b/opt/netbox/netbox/netbox/configuration.py 2021-07-11 22:28:09.665982854 +0000
3@@ -4,21 +4,35 @@ 3@@ -4,21 +4,35 @@
4 # # 4 # #
5 ######################### 5 #########################
@@ -43,7 +43,7 @@
43 } 43 }
44 44
45 # Redis database settings. Redis is used for caching and for queuing background tasks such as webhook events. A separate 45 # Redis database settings. Redis is used for caching and for queuing background tasks such as webhook events. A separate
46@@ -26,23 +40,23 @@ 46@@ -26,26 +40,26 @@
47 # to use two separate database IDs. 47 # to use two separate database IDs.
48 REDIS = { 48 REDIS = {
49 'tasks': { 49 'tasks': {
@@ -57,6 +57,9 @@
57- 'DATABASE': 0, 57- 'DATABASE': 0,
58+ 'DATABASE': int(os.getenv("NETBOX_REDIS_TASK_DB")), 58+ 'DATABASE': int(os.getenv("NETBOX_REDIS_TASK_DB")),
59 'SSL': False, 59 'SSL': False,
60 # Set this to True to skip TLS certificate verification
61 # This can expose the connection to attacks, be careful
62 # 'INSECURE_SKIP_TLS_VERIFY': False,
60 }, 63 },
61 'caching': { 64 'caching': {
62- 'HOST': 'localhost', 65- 'HOST': 'localhost',
@@ -69,9 +72,9 @@
69- 'DATABASE': 1, 72- 'DATABASE': 1,
70+ 'DATABASE': int(os.getenv("NETBOX_REDIS_CACHE_DB")), 73+ 'DATABASE': int(os.getenv("NETBOX_REDIS_CACHE_DB")),
71 'SSL': False, 74 'SSL': False,
72 } 75 # Set this to True to skip TLS certificate verification
73 } 76 # This can expose the connection to attacks, be careful
74@@ -51,7 +65,14 @@ 77@@ -57,7 +71,14 @@
75 # For optimal security, SECRET_KEY should be at least 50 characters in length and contain a mix of letters, numbers, and 78 # For optimal security, SECRET_KEY should be at least 50 characters in length and contain a mix of letters, numbers, and
76 # symbols. NetBox will not run without this defined. For more information, see 79 # symbols. NetBox will not run without this defined. For more information, see
77 # https://docs.djangoproject.com/en/stable/ref/settings/#std:setting-SECRET_KEY 80 # https://docs.djangoproject.com/en/stable/ref/settings/#std:setting-SECRET_KEY