retspen / webvirtmgr

WebVirtMgr panel for manage virtual machine
http://retspen.github.io
2.04k stars 536 forks source link

https via nginx breaks VNC Console #500

Open seitzbg opened 9 years ago

seitzbg commented 9 years ago

Can you please describe how to make the VNC console work again if using HTTPS to access webvirtmgr's interface? I tried the 'hacks' setting 'encrypted': false for console-vnc in templates but this did not resolve my issue.

Great app and thanks in advance!

brenard commented 9 years ago

If you access to webVirtMgr using https, the console will be access using encrypted connection but by default, webvirtmgr-console script use a bad cert file to make connection encrypted possible. You have to add WS_CERT variable in webvirtmgr/local/local_settings.py file : The value of this variable have to be the full path of a certificate file in PEM format including key and cert. You could use the same certifcate as you using in Nginx configuration.

sammcj commented 9 years ago

It would be nice to have that WS_CERT variable exposed to the config - how hard would that be to do?