Skip to content

Commit e564500

Browse files
author
sadnub
authored
update mesh initial setup command to use MESH_WS_URL for docker
1 parent 19c15ce commit e564500

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

api/tacticalrmm/core/management/commands/initial_mesh_setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ async def websocket_call(self, mesh_settings):
1818
token = get_auth_token(mesh_settings.mesh_username, mesh_settings.mesh_token)
1919

2020
if settings.DOCKER_BUILD:
21-
site = mesh_settings.mesh_site.replace("https", "ws")
22-
uri = f"{site}:443/control.ashx?auth={token}"
21+
uri = f"{settings.MESH_WS_URL}/control.ashx?auth={token}"
2322
else:
2423
site = mesh_settings.mesh_site.replace("https", "wss")
2524
uri = f"{site}/control.ashx?auth={token}"

0 commit comments

Comments
 (0)