novnc / websockify

Websockify is a WebSocket to TCP proxy/bridge. This allows a browser to connect to any application/server/service.
GNU Lesser General Public License v3.0
3.93k stars 776 forks source link

Extra parameters #566

Closed kroese closed 9 months ago

kroese commented 9 months ago

It would be very nice of some extra parameters were added to websockify.

The first one would be a setting to specify an index page (vnc.html) so that users can connect to localhost:port without having to add /vnc.html. Currently it just lists the directory contents in that case.

The second one would be to specify extra query parameters so that you can set defaults for novnc. For example ?autoconnect=true&password=xxx. Again, so that way users can just connect to the plain port without having to add it themselves.

EDIT: Yes, I know I could solve both issues using a reverse proxy / nginx, but I want to avoid having to install a full-blown webserver just for these small annoyances.

CendioOssman commented 9 months ago

I sympathise with your requests, but we try to keep websockify general and don't add noVNC specific features to it.

For vnc.html, you can simply rename it to index.html. Or create a symlink for it.

For modifying URLs, that's also a bit of a large addition for a small general toy server like websockify. The general problem might be of interest for noVNC, though, so feel free to open an issue there. It could be interesting to find a solution that isn't dependent on specific web server features.

kroese commented 9 months ago

Thanks, fair enough!