Support unified WebSocket endpoint for NoVNC and SSH when running behind a reverse proxy
Currently the application exposes multiple ports for different services:
5000 – Web application +1 port – WebSocket endpoint used by NoVNC +2 port – WebsSocket for SSH access
While this works when exposing the service directly, it complicates deployments behind a reverse proxy (e.g. Nginx, Traefik, HAProxy, Caddy).
In typical reverse proxy setups it is preferable to expose a single HTTPS entry point and route everything internally via paths or internal services.
Suggested improvement It would be very helpful if the WebSocket used by NoVNC could be served through the main web application endpoint (for example via a path like /novnc or /ws) instead of requiring a separate port.
This would allow deployments like: https://example.com/ -> Web UI https://example.com/novnc/ws -> WebSocket proxy for NoVNC
Advantages:
- easier reverse proxy configuration
- simpler firewall rules
- only one public port required
- more cloud / Kubernetes friendly
- avoids port juggling
Many web applications solve this by proxying the WebSocket internally from the main web server. Is something like this already planned, or would a contribution in this direction be welcome?
Sorry double of https://github.com/PegaProx/project-pegaprox/pull/43