Commit 4f75f76d authored by liuzheng712's avatar liuzheng712

fix: web socket url update

parent 92e9f988
......@@ -356,7 +356,7 @@ def web_terminal(request):
if asset:
print asset
hostname = asset.hostname
web_terminal_uri = '%s/terminal?id=%s&role=%s' % (WEB_SOCKET_HOST, asset_id, role_name)
web_terminal_uri = '%s/ws/terminal?id=%s&role=%s' % (WEB_SOCKET_HOST, asset_id, role_name)
return render_to_response('jlog/web_terminal.html', locals())
......@@ -439,8 +439,8 @@ def main():
}
tornado_app = tornado.web.Application(
[
# (r'/monitor', MonitorHandler),
(r'/terminal', WebTerminalHandler),
(r'/monitor', MonitorHandler),
(r'/ws/terminal', WebTerminalHandler),
(r'/kill', WebTerminalKillHandler),
(r'/exec', ExecHandler),
(r"/static/(.*)", tornado.web.StaticFileHandler,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment