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

/websockify endpoint fails when web server is served with a path prefix #166

Closed
Nedved-liao opened this issue Jul 19, 2023 · 1 comment
Closed

Comments

@Nedved-liao
Copy link

Describe the bug
This problem can be solved by modifying app/ui.js in novnc, but the modification does not take effect in kasmVNC

more detail:
novnc/noVNC#1737

How to solve this problem

@mmcclaskey
Copy link
Collaborator

No code needs to be modified, use a reverse proxy. KasmVNC is used with Kasm Workspaces and in that configuration the KasmVNC session is has a long prefix, for example,

wss://192.168.25.2/desktop/6603159b-49b2-45e1-8c3f-f080c19081db/vnc/websockify

The GUID in the path a session ID that corresponds to a container. NGINX proxies the session to the correct container and alters the location when proxied to KasmVNC. When the request gets to KasmVNC it is at the correct URI.

You should be able to do something similar.

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

No branches or pull requests

2 participants