|
|
@@ -207,85 +207,87 @@ When determining the primary IP address for a device, IPv6 is preferred over IPv
|
|
|
|
|
|
---
|
|
|
|
|
|
-## Redis Connection Settings
|
|
|
-
|
|
|
-The following settings are defined in the `REDIS` dictionary, much like the regular database settings.
|
|
|
-
|
|
|
-## DB
|
|
|
+## REPORTS_ROOT
|
|
|
|
|
|
-Default: 0
|
|
|
+Default: $BASE_DIR/netbox/reports/
|
|
|
|
|
|
-When `WEBHOOK_BACKEND_ENABLED` is `True` connect to the redis database with this ID. This is used in conjunction with the webhook backend. See the docs section on the webhook backend [here](../miscellaneous/webhook-backend/) for more information on setup and use.
|
|
|
+The file path to the location where custom reports will be kept. By default, this is the `netbox/reports/` directory within the base NetBox installation path.
|
|
|
|
|
|
---
|
|
|
|
|
|
-## DEFAULT_TIMEOUT
|
|
|
+## TIME_ZONE
|
|
|
|
|
|
-Default: 300
|
|
|
+Default: UTC
|
|
|
|
|
|
-When `WEBHOOK_BACKEND_ENABLED` is `True` use this value as the redis timeout. This is used in conjunction with the webhook backend. See the docs section on the webhook backend [here](../miscellaneous/webhook-backend/) for more information on setup and use.
|
|
|
+The time zone NetBox will use when dealing with dates and times. It is recommended to use UTC time unless you have a specific need to use a local time zone. [List of available time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
|
|
|
|
---
|
|
|
|
|
|
-## HOST
|
|
|
+## WEBHOOKS_ENABLED
|
|
|
|
|
|
-Default: localhost
|
|
|
+Default: False
|
|
|
|
|
|
-When `WEBHOOK_BACKEND_ENABLED` is `True` connect to this redis server host. This is used in conjunction with the webhook backend. See the docs section on the webhook backend [here](../miscellaneous/webhook-backend/) for more information on setup and use.
|
|
|
+Enable this option to run the webhook backend. See the docs section on the webhook backend [here](../miscellaneous/webhooks/) for more information on setup and use.
|
|
|
|
|
|
---
|
|
|
|
|
|
-## PASSWORD
|
|
|
-
|
|
|
-Default: N/A (empty string value)
|
|
|
+## Date and Time Formatting
|
|
|
|
|
|
-When `WEBHOOK_BACKEND_ENABLED` is `True` use this password to connect to the redis server. This is used in conjunction with the webhook backend. See the docs section on the webhook backend [here](../miscellaneous/webhook-backend/) for more information on setup and use.
|
|
|
+You may define custom formatting for date and times. For detailed instructions on writing format strings, please see [the Django documentation](https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date).
|
|
|
|
|
|
----
|
|
|
+Defaults:
|
|
|
|
|
|
-## PORT
|
|
|
+```
|
|
|
+DATE_FORMAT = 'N j, Y' # June 26, 2016
|
|
|
+SHORT_DATE_FORMAT = 'Y-m-d' # 2016-06-27
|
|
|
+TIME_FORMAT = 'g:i a' # 1:23 p.m.
|
|
|
+SHORT_TIME_FORMAT = 'H:i:s' # 13:23:00
|
|
|
+DATETIME_FORMAT = 'N j, Y g:i a' # June 26, 2016 1:23 p.m.
|
|
|
+SHORT_DATETIME_FORMAT = 'Y-m-d H:i' # 2016-06-27 13:23
|
|
|
+```
|
|
|
|
|
|
-Default: 6379
|
|
|
+---
|
|
|
|
|
|
-When `WEBHOOK_BACKEND_ENABLED` is `True` use this port to connect to the redis server. This is used in conjunction with the webhook backend. See the docs section on the webhook backend [here](../miscellaneous/webhook-backend/) for more information on setup and use.
|
|
|
+## Redis Connection Settings
|
|
|
|
|
|
----
|
|
|
+[Redis](https://redis.io/) is a key-value store which functions as a very lightweight database. It is required when enabling NetBox [webhooks](../miscellaneous/webhooks/). A Redis connection is configured using a dictionary similar to the following:
|
|
|
|
|
|
-## REPORTS_ROOT
|
|
|
+```
|
|
|
+REDIS = {
|
|
|
+ 'HOST': 'localhost',
|
|
|
+ 'PORT': 6379,
|
|
|
+ 'PASSWORD': '',
|
|
|
+ 'DATABASE': 0,
|
|
|
+ 'DEFAULT_TIMEOUT': 300,
|
|
|
+}
|
|
|
+```
|
|
|
|
|
|
-Default: $BASE_DIR/netbox/reports/
|
|
|
+### DATABASE
|
|
|
|
|
|
-The file path to the location where custom reports will be kept. By default, this is the `netbox/reports/` directory within the base NetBox installation path.
|
|
|
+Default: 0
|
|
|
|
|
|
----
|
|
|
+The Redis database ID.
|
|
|
|
|
|
-## TIME_ZONE
|
|
|
+### DEFAULT_TIMEOUT
|
|
|
|
|
|
-Default: UTC
|
|
|
+Default: 300
|
|
|
|
|
|
-The time zone NetBox will use when dealing with dates and times. It is recommended to use UTC time unless you have a specific need to use a local time zone. [List of available time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
|
+The timeout value to use when connecting to the Redis server (in seconds).
|
|
|
|
|
|
----
|
|
|
+### HOST
|
|
|
|
|
|
-## WEBHOOK_BACKEND_ENABLED
|
|
|
+Default: localhost
|
|
|
|
|
|
-Default: False
|
|
|
+The hostname or IP address of the Redis server.
|
|
|
|
|
|
-Enable this option to run the webhook backend. See the docs section on the webhook backend [here](../miscellaneous/webhook-backend/) for more information on setup and use.
|
|
|
+### PORT
|
|
|
|
|
|
----
|
|
|
+Default: 6379
|
|
|
|
|
|
-## Date and Time Formatting
|
|
|
+The TCP port to use when connecting to the Redis server.
|
|
|
|
|
|
-You may define custom formatting for date and times. For detailed instructions on writing format strings, please see [the Django documentation](https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date).
|
|
|
+### PASSWORD
|
|
|
|
|
|
-Defaults:
|
|
|
+Default: None
|
|
|
|
|
|
-```
|
|
|
-DATE_FORMAT = 'N j, Y' # June 26, 2016
|
|
|
-SHORT_DATE_FORMAT = 'Y-m-d' # 2016-06-27
|
|
|
-TIME_FORMAT = 'g:i a' # 1:23 p.m.
|
|
|
-SHORT_TIME_FORMAT = 'H:i:s' # 13:23:00
|
|
|
-DATETIME_FORMAT = 'N j, Y g:i a' # June 26, 2016 1:23 p.m.
|
|
|
-SHORT_DATETIME_FORMAT = 'Y-m-d H:i' # 2016-06-27 13:23
|
|
|
-```
|
|
|
+The password to use when authenticating to the Redis server (optional).
|