Skip to content

NoVNC Proxy in Docker #410

@mchlrv

Description

@mchlrv

I'm running webvirtcloud in Docker and use Apache to proxy pass traffic to webvirtcloud in docker.
Everything seems to work when using non SSL (http). However when I'm trying to use SSL (https) everything seems to work except NoVNC.

I'm not sure what I forget or do wrong as this works for non SSL. Any suggestions?

My Apache proxy part looks as follow:

ProxyRequests Off

ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/

ProxyPass /novncd/ ws://localhost:6080/novncd/ retry=3
ProxyPassReverse /novncd/ ws://locahost:6080/novncd/ retry=3

My webvirtcloud settings look like:

# Websock port
WS_PORT = 6080

# Websock host
WS_HOST = "0.0.0.0"

# Websock public port - 80 or 443 if reverse-proxy, else 6080
WS_PUBLIC_PORT = 443

# Websock public host
WS_PUBLIC_HOST = None

# Websock public path
WS_PUBLIC_PATH = "/novncd/"

When trying to connect to NoVNC and looking a the developer console the following error appears:

websock.js:185 WebSocket connection to 'wss://webvirtcloud:6080//novncd/' failed: Error in connection establishment: net::ERR_CONNECTION_RESET

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions