Disable webhooks by default*

*but enable it by default for anyone who checks out the netbox-docker project
via the netbox.env file.
This commit is contained in:
Christian Mäder 2018-08-13 13:17:41 -07:00
parent bf557877d1
commit b8885e4b79
No known key found for this signature in database
GPG Key ID: 92FFD0A711F196BB
2 changed files with 2 additions and 1 deletions

View File

@ -141,7 +141,7 @@ PREFER_IPV4 = os.environ.get('PREFER_IPV4', 'False').lower() == 'true'
# The Webhook event backend is disabled by default. Set this to True to enable it. Note that this requires a Redis
# database be configured and accessible by NetBox (see `REDIS` below).
WEBHOOKS_ENABLED = os.environ.get('WEBHOOKS_ENABLED', 'True').lower() == 'true'
WEBHOOKS_ENABLED = os.environ.get('WEBHOOKS_ENABLED', 'False').lower() == 'true'
# Redis database settings (optional). A Redis database is required only if the webhooks backend is enabled.
REDIS = {

View File

@ -20,3 +20,4 @@ SUPERUSER_NAME=admin
SUPERUSER_EMAIL=admin@example.com
SUPERUSER_PASSWORD=admin
SUPERUSER_API_TOKEN=0123456789abcdef0123456789abcdef01234567
WEBHOOKS_ENABLED=true