expressjs.js (498B)
1#!/usr/bin/env node 2 3const GuacamoleLite = require('guacamole-lite'); 4const express = require('express'); 5const http = require('http'); 6 7const app = express(); 8 9const server = http.createServer(app); 10 11const guacdOptions = { 12 port: 4822 // port of guacd 13}; 14 15const clientOptions = { 16 crypt: { 17 cypher: 'AES-256-CBC', 18 key: 'MySuperSecretKeyForParamsToken12' 19 } 20}; 21 22const guacServer = new GuacamoleLite( 23 {server}, 24 guacdOptions, 25 clientOptions 26); 27 28server.listen(8080);