Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
f73d34b9
Commit
f73d34b9
authored
9 years ago
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(monitor): change monitor url
parent
936faad1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
run_server.py
run_server.py
+1
-1
log_online.html
templates/jlog/log_online.html
+1
-1
No files found.
run_server.py
View file @
f73d34b9
...
@@ -460,7 +460,7 @@ def main():
...
@@ -460,7 +460,7 @@ def main():
}
}
tornado_app
=
tornado
.
web
.
Application
(
tornado_app
=
tornado
.
web
.
Application
(
[
[
(
r'/monitor'
,
MonitorHandler
),
(
r'/
ws/
monitor'
,
MonitorHandler
),
(
r'/ws/terminal'
,
WebTerminalHandler
),
(
r'/ws/terminal'
,
WebTerminalHandler
),
(
r'/kill'
,
WebTerminalKillHandler
),
(
r'/kill'
,
WebTerminalKillHandler
),
(
r'/ws/exec'
,
ExecHandler
),
(
r'/ws/exec'
,
ExecHandler
),
...
...
This diff is collapsed.
Click to expand it.
templates/jlog/log_online.html
View file @
f73d34b9
...
@@ -136,7 +136,7 @@
...
@@ -136,7 +136,7 @@
var
protocol
=
'ws://'
;
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
file_path
=
obj
.
attr
(
'file_path'
);
var
socket
=
new
WebSocket
(
endpoint
+
'?file_path='
+
file_path
);
var
socket
=
new
WebSocket
(
endpoint
+
'?file_path='
+
file_path
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment