changed redis config to accept more compreensive settings

This commit is contained in:
Gonçalo Valério 2019-03-22 12:14:07 +00:00
parent 9abc5b3da2
commit ae6103396e
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ ASGI_APPLICATION = "webhook_logger.routing.application"
CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer",
"CONFIG": {"hosts": [(os.environ.get("REDIS_URL", "127.0.0.1"), 6379)]},
"CONFIG": {"hosts": [os.environ.get("REDIS_URL", "redis://localhost:6379")]},
}
}