VNC client
This commit is contained in:
@@ -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)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user