fix: web socket url update

pull/86/head
liuzheng712 9 years ago
parent 92e9f988f3
commit 4f75f76db8

@ -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,

Loading…
Cancel
Save