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
c0bacb7c
Commit
c0bacb7c
authored
Mar 03, 2016
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change(with pre fix) 修改安装和jumpserver.conf
上次修改已可以自动获取 ws地址,去掉无用设置和配置文件指定 去掉install.py中的设置
parent
6436fab8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
5 deletions
+0
-5
install.py
install/install.py
+0
-1
jumpserver.conf
jumpserver.conf
+0
-1
settings.py
jumpserver/settings.py
+0
-1
views.py
jumpserver/views.py
+0
-2
No files found.
install/install.py
View file @
c0bacb7c
...
...
@@ -119,7 +119,6 @@ class PreSetup(object):
conf
=
ConfigParser
.
ConfigParser
()
conf
.
read
(
conf_file
)
conf
.
set
(
'base'
,
'url'
,
'http://
%
s'
%
self
.
ip
)
conf
.
set
(
'base'
,
'websocket_url'
,
'ws://
%
s'
%
self
.
ip
)
conf
.
set
(
'base'
,
'key'
,
self
.
key
)
conf
.
set
(
'db'
,
'host'
,
self
.
db_host
)
conf
.
set
(
'db'
,
'port'
,
self
.
db_port
)
...
...
jumpserver.conf
View file @
c0bacb7c
[
base
]
url
=
http
://
192
.
168
.
244
.
129
websocket_url
=
ws
://
192
.
168
.
244
.
129
key
=
i6k2zeu8x6mncl76
ip
=
0
.
0
.
0
.
0
port
=
80
...
...
jumpserver/settings.py
View file @
c0bacb7c
...
...
@@ -41,7 +41,6 @@ SSH_KEY_DIR = os.path.join(BASE_DIR, 'keys/role_keys')
KEY
=
config
.
get
(
'base'
,
'key'
)
URL
=
config
.
get
(
'base'
,
'url'
)
LOG_LEVEL
=
config
.
get
(
'base'
,
'log'
)
WEB_SOCKET_URL
=
config
.
get
(
'base'
,
'websocket_url'
)
IP
=
config
.
get
(
'base'
,
'ip'
)
PORT
=
config
.
get
(
'base'
,
'port'
)
...
...
jumpserver/views.py
View file @
c0bacb7c
...
...
@@ -354,9 +354,7 @@ def web_terminal(request):
role_name
=
request
.
GET
.
get
(
'role'
)
asset
=
get_object
(
Asset
,
id
=
asset_id
)
if
asset
:
print
asset
hostname
=
asset
.
hostname
web_terminal_url
=
'
%
s/ws/terminal?id=
%
s&role=
%
s'
%
(
WEB_SOCKET_URL
,
asset_id
,
role_name
)
return
render_to_response
(
'jlog/web_terminal.html'
,
locals
())
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