redis url can be configured as an environment variable
This commit is contained in:
parent
62a1ab2b92
commit
e6b5f79d0d
|
@ -96,6 +96,6 @@ ASGI_APPLICATION = "webhook_logger.routing.application"
|
|||
CHANNEL_LAYERS = {
|
||||
"default": {
|
||||
"BACKEND": "channels_redis.core.RedisChannelLayer",
|
||||
"CONFIG": {"hosts": [("127.0.0.1", 6379)]},
|
||||
"CONFIG": {"hosts": [(os.environ.get("REDIS_URL", "127.0.0.1"), 6379)]},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue