mirror of
https://github.com/ansible/awx.git
synced 2026-01-27 00:21:30 -03:30
Exporting YAML on dev envs with honcho and in production environments would timeout. This was due to daphne handling the export request in dev but not in production. This fixes network_ui to use uwsgi instead of daphne to handle the request.
10 lines
401 B
Python
10 lines
401 B
Python
# Copyright (c) 2017 Red Hat, Inc
|
|
from channels.routing import route
|
|
from awx.network_ui.consumers import ws_connect, ws_message, ws_disconnect
|
|
|
|
channel_routing = [
|
|
route("websocket.connect", ws_connect, path=r"^/network_ui/topology/"),
|
|
route("websocket.receive", ws_message, path=r"^/network_ui/topology/"),
|
|
route("websocket.disconnect", ws_disconnect, path=r"^/network_ui/topology/"),
|
|
]
|