mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-07 11:59:18 +00:00
fix(monitor): change monitor url
This commit is contained in:
parent
936faad1b9
commit
f73d34b9cc
@ -460,7 +460,7 @@ def main():
|
||||
}
|
||||
tornado_app = tornado.web.Application(
|
||||
[
|
||||
(r'/monitor', MonitorHandler),
|
||||
(r'/ws/monitor', MonitorHandler),
|
||||
(r'/ws/terminal', WebTerminalHandler),
|
||||
(r'/kill', WebTerminalKillHandler),
|
||||
(r'/ws/exec', ExecHandler),
|
||||
|
@ -136,7 +136,7 @@
|
||||
var protocol = 'ws://';
|
||||
}
|
||||
|
||||
var endpoint = protocol + document.URL.match(RegExp('//(.*?)/'))[1] + '/monitor';
|
||||
var endpoint = protocol + document.URL.match(RegExp('//(.*?)/'))[1] + '/ws/monitor';
|
||||
var file_path = obj.attr('file_path');
|
||||
var socket = new WebSocket(endpoint + '?file_path=' + file_path);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user