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
649783d2
Commit
649783d2
authored
Mar 03, 2016
by
ibuler
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #114 from jumpserver/bug_fix_guang
change(with pre fix) 修改安装和jumpserver.conf
parents
6436fab8
c0bacb7c
Show 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 @
649783d2
...
@@ -119,7 +119,6 @@ class PreSetup(object):
...
@@ -119,7 +119,6 @@ class PreSetup(object):
conf
=
ConfigParser
.
ConfigParser
()
conf
=
ConfigParser
.
ConfigParser
()
conf
.
read
(
conf_file
)
conf
.
read
(
conf_file
)
conf
.
set
(
'base'
,
'url'
,
'http://
%
s'
%
self
.
ip
)
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
(
'base'
,
'key'
,
self
.
key
)
conf
.
set
(
'db'
,
'host'
,
self
.
db_host
)
conf
.
set
(
'db'
,
'host'
,
self
.
db_host
)
conf
.
set
(
'db'
,
'port'
,
self
.
db_port
)
conf
.
set
(
'db'
,
'port'
,
self
.
db_port
)
...
...
jumpserver.conf
View file @
649783d2
[
base
]
[
base
]
url
=
http
://
192
.
168
.
244
.
129
url
=
http
://
192
.
168
.
244
.
129
websocket_url
=
ws
://
192
.
168
.
244
.
129
key
=
i6k2zeu8x6mncl76
key
=
i6k2zeu8x6mncl76
ip
=
0
.
0
.
0
.
0
ip
=
0
.
0
.
0
.
0
port
=
80
port
=
80
...
...
jumpserver/settings.py
View file @
649783d2
...
@@ -41,7 +41,6 @@ SSH_KEY_DIR = os.path.join(BASE_DIR, 'keys/role_keys')
...
@@ -41,7 +41,6 @@ SSH_KEY_DIR = os.path.join(BASE_DIR, 'keys/role_keys')
KEY
=
config
.
get
(
'base'
,
'key'
)
KEY
=
config
.
get
(
'base'
,
'key'
)
URL
=
config
.
get
(
'base'
,
'url'
)
URL
=
config
.
get
(
'base'
,
'url'
)
LOG_LEVEL
=
config
.
get
(
'base'
,
'log'
)
LOG_LEVEL
=
config
.
get
(
'base'
,
'log'
)
WEB_SOCKET_URL
=
config
.
get
(
'base'
,
'websocket_url'
)
IP
=
config
.
get
(
'base'
,
'ip'
)
IP
=
config
.
get
(
'base'
,
'ip'
)
PORT
=
config
.
get
(
'base'
,
'port'
)
PORT
=
config
.
get
(
'base'
,
'port'
)
...
...
jumpserver/views.py
View file @
649783d2
...
@@ -354,9 +354,7 @@ def web_terminal(request):
...
@@ -354,9 +354,7 @@ def web_terminal(request):
role_name
=
request
.
GET
.
get
(
'role'
)
role_name
=
request
.
GET
.
get
(
'role'
)
asset
=
get_object
(
Asset
,
id
=
asset_id
)
asset
=
get_object
(
Asset
,
id
=
asset_id
)
if
asset
:
if
asset
:
print
asset
hostname
=
asset
.
hostname
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
())
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