Skip to content

Instantly share code, notes, and snippets.

@SubCoder1
Created October 2, 2019 05:42
Show Gist options
  • Save SubCoder1/672602dc98f8f88b69084fbb6d51cbf4 to your computer and use it in GitHub Desktop.
Save SubCoder1/672602dc98f8f88b69084fbb6d51cbf4 to your computer and use it in GitHub Desktop.
Django-channels CHANNEL_LAYERS settings for password-protected Redis-server
CHANNEL_LAYERS = {
"default": {
"BACKEND": "asgi_redis.RedisChannelLayer",
"ROUTING": "widget.routing.channel_routing",
"CONFIG": {
"hosts": [("redis://:mypassword@127.0.0.1:6379/0")],
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment