From b8885e4b7967d68ea10321425c1863a3d87452f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ma=CC=88der?= Date: Mon, 13 Aug 2018 13:17:41 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Disable=20webhooks=20by=20default*?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit *but enable it by default for anyone who checks out the netbox-docker project via the netbox.env file. --- configuration/configuration.py | 2 +- netbox.env | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configuration/configuration.py b/configuration/configuration.py index d269981..57b2320 100644 --- a/configuration/configuration.py +++ b/configuration/configuration.py @@ -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 = { diff --git a/netbox.env b/netbox.env index 9efe6c7..f8a3086 100644 --- a/netbox.env +++ b/netbox.env @@ -20,3 +20,4 @@ SUPERUSER_NAME=admin SUPERUSER_EMAIL=admin@example.com SUPERUSER_PASSWORD=admin SUPERUSER_API_TOKEN=0123456789abcdef0123456789abcdef01234567 +WEBHOOKS_ENABLED=true