diff --git a/images/common/openwisp/asgi.py b/images/common/openwisp/asgi.py index 4ad7ea2f..6b314b81 100644 --- a/images/common/openwisp/asgi.py +++ b/images/common/openwisp/asgi.py @@ -29,6 +29,12 @@ routes.extend(network_topology_routes) +if env_bool(os.environ.get("USE_OPENWISP_FIRMWARE")): + from openwisp_firmware_upgrader.routing import ( # noqa: E402 + websocket_urlpatterns as firmware_upgrader_routes, + ) + + routes.extend(firmware_upgrader_routes) if env_bool(os.environ["USE_OPENWISP_RADIUS"]): from openwisp_radius.routing import websocket_urlpatterns as radius_routes diff --git a/images/openwisp_dashboard/module_settings.py b/images/openwisp_dashboard/module_settings.py index 6c092abf..1a5a17ce 100644 --- a/images/openwisp_dashboard/module_settings.py +++ b/images/openwisp_dashboard/module_settings.py @@ -108,6 +108,5 @@ OPENWISP_NETWORK_TOPOLOGY_API_BASEURL = API_BASEURL OPENWISP_NOTIFICATIONS_HOST = API_BASEURL OPENWISP_CONTROLLER_API_HOST = API_BASEURL -OPENWISP_MONITORING_API_BASEURL = API_BASEURL OPENWISP_FIRMWARE_API_BASEURL = API_BASEURL OPENWISP_RADIUS_API_BASEURL = API_BASEURL