VNC client

This commit is contained in:
2026-09-15 00:43:32 -04:00
parent 4c8e18b682
commit ecc7ef5a8a
3 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -10,15 +10,15 @@ const VNC_HOST = process.env.VNC_HOST || '127.0.0.1';
const VNC_PORT = process.env.VNC_PORT || 5900;
export const vncRouter = express.Router();
vncRouter.get('/novnc/desktop.html', (req, res) =>
res.sendFile(path.join(__dirname, '../../public/desktop.html'))
vncRouter.get('/novnc/vnc.html', (req, res) =>
res.sendFile(path.join(__dirname, '../public/vnc.html'))
);
vncRouter.use('/novnc', express.static(NOVNC));
vncRouter.get('/', (req, res) =>
res.redirect('/vnc/novnc/vnc.html?path=ws/vnc&autoconnect=true&resize=scale')
);
// Namespaced so other websocket features can register alongside this one
const wss = registerSocket('/ws/vnc', {
handleProtocols: protocols => (protocols.has('binary') ? 'binary' : false)
});