UNPKG

guacamole-lite

Version:

Library to create servers compatible with the Guacamole protocol. Guacamole is a web client for RDP/VNC/SSH/Telnet

28 lines (21 loc) 498 B
#!/usr/bin/env node const GuacamoleLite = require('guacamole-lite'); const express = require('express'); const http = require('http'); const app = express(); const server = http.createServer(app); const guacdOptions = { port: 4822 // port of guacd }; const clientOptions = { crypt: { cypher: 'AES-256-CBC', key: 'MySuperSecretKeyForParamsToken12' } }; const guacServer = new GuacamoleLite( {server}, guacdOptions, clientOptions ); server.listen(8080);