Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
11
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
37eea7f4
authored
5 years ago
by
Chif Gergő
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add redis config as channel layer
parent
b89e69da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
recircle/recircle/settings/base.py
+9
-0
status/routing.py
+1
-2
No files found.
recircle/recircle/settings/base.py
View file @
37eea7f4
...
@@ -242,4 +242,13 @@ AUTHENTICATION_BACKENDS = (
...
@@ -242,4 +242,13 @@ AUTHENTICATION_BACKENDS = (
'guardian.backends.ObjectPermissionBackend'
,
'guardian.backends.ObjectPermissionBackend'
,
)
)
CHANNEL_LAYERS
=
{
'default'
:
{
'BACKEND'
:
'channels_redis.core.RedisChannelLayer'
,
'CONFIG'
:
{
"hosts"
:
[(
'127.0.0.1'
,
6379
)],
},
},
}
ASGI_APPLICATION
=
"recircle.routing.application"
ASGI_APPLICATION
=
"recircle.routing.application"
This diff is collapsed.
Click to expand it.
status/routing.py
View file @
37eea7f4
...
@@ -4,4 +4,4 @@ from . import consumers
...
@@ -4,4 +4,4 @@ from . import consumers
websocket_urlpatterns
=
[
websocket_urlpatterns
=
[
re_path
(
r'ws/instance/(?P<vm_id>\w+)/$'
,
consumers
.
StatusConsumer
),
re_path
(
r'ws/instance/(?P<vm_id>\w+)/$'
,
consumers
.
StatusConsumer
),
]
]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment