Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
noVNC
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
noVNC
Commits
361cde7c
Commit
361cde7c
authored
Nov 08, 2012
by
Joel Martin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #214 from otherwiseguy/master
Update utils/nova-novncproxy to work with nova master branch
parents
3516bdf3
f167ea0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
nova-novncproxy
utils/nova-novncproxy
+17
-17
No files found.
utils/nova-novncproxy
View file @
361cde7c
...
...
@@ -28,8 +28,8 @@ import sys
import
wsproxy
from
nova
import
config
from
nova
import
context
from
nova
import
flags
from
nova
import
utils
from
nova.openstack.common
import
cfg
from
nova.openstack.common
import
rpc
...
...
@@ -64,13 +64,13 @@ opts = [
default
=
6080
,
help
=
'Port on which to listen for incoming requests'
),
]
FLAGS
=
flags
.
FLAGS
FLAGS
.
register_cli_opts
(
opts
)
CONF
=
config
.
CONF
CONF
.
register_cli_opts
(
opts
)
# As of nova commit 0b11668e64450039dc071a4a123abd02206f865f we must
# manually register the rpc library
if
hasattr
(
rpc
,
'register_opts'
):
rpc
.
register_opts
(
FLAGS
)
rpc
.
register_opts
(
CONF
)
class
NovaWebSocketProxy
(
wsproxy
.
WebSocketProxy
):
...
...
@@ -128,23 +128,23 @@ class NovaWebSocketProxy(wsproxy.WebSocketProxy):
if
__name__
==
'__main__'
:
if
FLAGS
.
ssl_only
and
not
os
.
path
.
exists
(
FLAGS
.
cert
):
parser
.
error
(
"SSL only and
%
s not found"
%
FLAGS
.
cert
)
if
CONF
.
ssl_only
and
not
os
.
path
.
exists
(
CONF
.
cert
):
parser
.
error
(
"SSL only and
%
s not found"
%
CONF
.
cert
)
# Setup flags
flags
.
parse_args
(
sys
.
argv
)
config
.
parse_args
(
sys
.
argv
)
# Create and start the NovaWebSockets proxy
server
=
NovaWebSocketProxy
(
listen_host
=
FLAGS
.
novncproxy_host
,
listen_port
=
FLAGS
.
novncproxy_port
,
source_is_ipv6
=
FLAGS
.
source_is_ipv6
,
verbose
=
FLAGS
.
verbose
,
cert
=
FLAGS
.
cert
,
key
=
FLAGS
.
key
,
ssl_only
=
FLAGS
.
ssl_only
,
daemon
=
FLAGS
.
daemon
,
record
=
FLAGS
.
record
,
web
=
FLAGS
.
web
,
server
=
NovaWebSocketProxy
(
listen_host
=
CONF
.
novncproxy_host
,
listen_port
=
CONF
.
novncproxy_port
,
source_is_ipv6
=
CONF
.
source_is_ipv6
,
verbose
=
CONF
.
verbose
,
cert
=
CONF
.
cert
,
key
=
CONF
.
key
,
ssl_only
=
CONF
.
ssl_only
,
daemon
=
CONF
.
daemon
,
record
=
CONF
.
record
,
web
=
CONF
.
web
,
target_host
=
'ignore'
,
target_port
=
'ignore'
,
wrap_mode
=
'exit'
,
...
...
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