Hardcoded websocket path when using noVNC full version
Closed this issue · 10 comments
I have to change ws_path everytime when I want to use noVNC full variant.
Hardcoded here:
webvirtcloud/console/templates/console-vnc-full.html
Lines 221 to 222 in a20fa8e
The lite version works because:
webvirtcloud/console/templates/console-vnc-lite.html
Lines 177 to 178 in a20fa8e
get data from:
Lines 74 to 87 in a20fa8e
The issue is caused by 43f1461
@catborise @retspen The template got removed from the commit above. Is it intentional?
I dont think it is intentional change, may be it is missed. We could change it, if it is useful.
I think it's useful as it's more convenient.
@catborise Any update on this?
@wongsyrone it is initiated at different place. changing "websockify" does not affect. i think it is set in UI.js which is not reach ws_path value.
Nope. I fixed it on my side by reverting partial changes (console-vnc-full.html) of 43f1461
@wongsyrone i change it. but i cannot test it(my test shows no effect). if it is working fine...
24cd3f7 looks good to me.
I don't think this fix works at all. If I view the HTML source, I do see the correct HTML code, but in the console settings, it is still set to "websockify".
May I suggest just adding the location conf for "websockify" to /etc/nginx/conf.d/webvirtcloud.conf as a workaround. This fixes the issue.
location /websockify {
proxy_pass http://wssocketiod;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}