Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

noVNC on https ? #134

Closed
streki opened this issue Feb 29, 2012 · 4 comments
Closed

noVNC on https ? #134

streki opened this issue Feb 29, 2012 · 4 comments
Labels

Comments

@streki
Copy link

streki commented Feb 29, 2012

I think the title is explicit!

It's because I would like the vnc password to be protected!

@kanaka
Copy link
Member

kanaka commented Feb 29, 2012

If you have a self.pem at the top-level of you noVNC repo/installation then launch.sh will automatically add the --cert option to the websockify invocation. Or you can just launch websockify directly and pass the --cert option pointing to your SSL certificate file.

Once you've done that, websockify will automatically start answering https requests on the same port as normal http (and WebSocket connections).

Also, don't forget to set the encrypt setting in noVNC itself otherwise you will use http for the static web pages but still use an unencrypted connection for the WebSocket connection.

Both https and wss (encrypted websocket connections) require that websockify was started with a cert file (the --cert option).

@kanaka kanaka closed this as completed Feb 29, 2012
@kanaka
Copy link
Member

kanaka commented Feb 29, 2012

The process for generating a self-signed SSL certificate file is described on the noVNC Advanced Usage page

@streki
Copy link
Author

streki commented Feb 29, 2012

Thanks a lot for your support!

@drui9
Copy link

drui9 commented Jun 6, 2024

2024 Update:
Available on nginx with let's encrypt certificate.
`
server {

    server_name www.yourdomain-here.com;

    location / {
            proxy_pass http://localhost:6080;
    }
    location /websockify {
            proxy_pass http://localhost:6080;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "Upgrade";
            proxy_read_timeout 600s;
            proxy_buffering off;
    }
    server_tokens off;
    gzip off;

}
Then runsudo certbot --nginx`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants