mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 08:48:46 -03:30
Allow connecting to websockets via api/websocket/
* Before, we just allowed websockets on <host>/websocket/. With this change, they can now come from <host>/api/websocket/
This commit is contained in:
@@ -27,6 +27,7 @@ class AWXProtocolTypeRouter(ProtocolTypeRouter):
|
||||
|
||||
|
||||
websocket_urlpatterns = [
|
||||
re_path(r'api/websocket/$', consumers.EventConsumer.as_asgi()),
|
||||
re_path(r'websocket/$', consumers.EventConsumer.as_asgi()),
|
||||
re_path(r'websocket/relay/$', consumers.RelayConsumer.as_asgi()),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user