Skip to content

Commit 24f0545

Browse files
committed
Merge branch 'ryanmerolle-develop' into develop
2 parents 6c8042b + 1bc1ab2 commit 24f0545

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

configuration/configuration.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,15 @@ def read_secret(secret_name):
5151

5252
# Redis database settings. The Redis database is used for caching and background processing such as webhooks
5353
REDIS = {
54-
'webhooks': {
54+
'tasks': {
55+
'HOST': os.environ.get('REDIS_HOST', 'localhost'),
56+
'PORT': int(os.environ.get('REDIS_PORT', 6379)),
57+
'PASSWORD': os.environ.get('REDIS_PASSWORD', read_secret('redis_password')),
58+
'DATABASE': int(os.environ.get('REDIS_DATABASE', 0)),
59+
'DEFAULT_TIMEOUT': int(os.environ.get('REDIS_TIMEOUT', 300)),
60+
'SSL': os.environ.get('REDIS_SSL', 'False').lower() == 'true',
61+
},
62+
'webhooks': { # legacy setting, can be removed after Netbox seizes support for it
5563
'HOST': os.environ.get('REDIS_HOST', 'localhost'),
5664
'PORT': int(os.environ.get('REDIS_PORT', 6379)),
5765
'PASSWORD': os.environ.get('REDIS_PASSWORD', read_secret('redis_password')),

0 commit comments

Comments
 (0)