Commit 37eea7f4 by Chif Gergő

Add redis config as channel layer

parent b89e69da
......@@ -242,4 +242,13 @@ AUTHENTICATION_BACKENDS = (
'guardian.backends.ObjectPermissionBackend',
)
CHANNEL_LAYERS = {
'default': {
'BACKEND': 'channels_redis.core.RedisChannelLayer',
'CONFIG': {
"hosts": [('127.0.0.1', 6379)],
},
},
}
ASGI_APPLICATION = "recircle.routing.application"
......@@ -4,4 +4,4 @@ from . import consumers
websocket_urlpatterns = [
re_path(r'ws/instance/(?P<vm_id>\w+)/$', consumers.StatusConsumer),
]
\ No newline at end of file
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment