root: fix channels not loading redis connection details
This commit is contained in:
parent
b11d6a5891
commit
7ea5c22b6c
|
@ -10,6 +10,7 @@ redis:
|
|||
password: ''
|
||||
cache_db: 0
|
||||
message_queue_db: 1
|
||||
ws_db: 2
|
||||
|
||||
debug: false
|
||||
log_level: info
|
||||
|
|
|
@ -193,7 +193,12 @@ ASGI_APPLICATION = "passbook.root.routing.application"
|
|||
CHANNEL_LAYERS = {
|
||||
"default": {
|
||||
"BACKEND": "channels_redis.core.RedisChannelLayer",
|
||||
"CONFIG": {"hosts": [(CONFIG.y("redis.host"), 6379)]},
|
||||
"CONFIG": {
|
||||
"hosts": [
|
||||
f"redis://:{CONFIG.y('redis.password')}@{CONFIG.y('redis.host')}:6379"
|
||||
f"/{CONFIG.y('redis.ws_db')}"
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue