From 5beb3093db4d2f8bb84f852b30a879e48f5492e4 Mon Sep 17 00:00:00 2001 From: Alexander Kinneer Date: Tue, 19 Mar 2019 11:27:45 -0500 Subject: [PATCH] Add support for using SSL connections to Redis. --- configuration/configuration.py | 1 + env/netbox.env | 1 + 2 files changed, 2 insertions(+) diff --git a/configuration/configuration.py b/configuration/configuration.py index c868cac..a7e29f7 100644 --- a/configuration/configuration.py +++ b/configuration/configuration.py @@ -146,6 +146,7 @@ REDIS = { 'PASSWORD': os.environ.get('REDIS_PASSWORD', read_secret('redis_password')), 'DATABASE': os.environ.get('REDIS_DATABASE', '0'), 'DEFAULT_TIMEOUT': os.environ.get('REDIS_TIMEOUT', '300'), + 'SSL': os.environ.get('REDIS_SSL', 'False').lower() == 'true', } # The file path where custom reports will be stored. A trailing slash is not needed. Note that the default value of diff --git a/env/netbox.env b/env/netbox.env index c8cc2e5..01feb38 100644 --- a/env/netbox.env +++ b/env/netbox.env @@ -15,6 +15,7 @@ NAPALM_TIMEOUT=10 MAX_PAGE_SIZE=1000 REDIS_HOST=redis REDIS_PASSWORD=H733Kdjndks81 +REDIS_SSL=false SECRET_KEY=r8OwDznj!!dci#P9ghmRfdu1Ysxm0AiPeDCQhKE+N_rClfWNj SUPERUSER_NAME=admin SUPERUSER_EMAIL=admin@example.com