redis url can be configured as an environment variable

This commit is contained in:
Gonçalo Valério 2019-01-13 17:51:03 +00:00
parent 62a1ab2b92
commit e6b5f79d0d
1 changed files with 1 additions and 1 deletions

View File

@ -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)]},
}
}