File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,15 @@ def read_secret(secret_name):
51
51
52
52
# Redis database settings. The Redis database is used for caching and background processing such as webhooks
53
53
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
55
63
'HOST' : os .environ .get ('REDIS_HOST' , 'localhost' ),
56
64
'PORT' : int (os .environ .get ('REDIS_PORT' , 6379 )),
57
65
'PASSWORD' : os .environ .get ('REDIS_PASSWORD' , read_secret ('redis_password' )),
You can’t perform that action at this time.
0 commit comments