mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-28 17:57:22 +03:00
M #~: Clean install.sh & gitignore (#770)
This commit is contained in:
parent
bd814db697
commit
d4d133b882
7
.gitignore
vendored
7
.gitignore
vendored
@ -45,13 +45,6 @@ src/sunstone/public/css/app.min.css
|
||||
src/sunstone/public/dist/
|
||||
src/sunstone/public/locale/languages/*.js
|
||||
src/sunstone/public/package-lock.json
|
||||
src/sunstone/guac/node_modules
|
||||
src/sunstone/guac/dist
|
||||
src/sunstone/guac/package-lock.json
|
||||
src/sunstone/vmrc/node_modules
|
||||
src/sunstone/vmrc/dist
|
||||
src/sunstone/vmrc/package-lock.json
|
||||
src/sunstone/vmrc/v8-compile-cache-0/
|
||||
.tx/config
|
||||
|
||||
src/fireedge/node_modules
|
||||
|
@ -2521,12 +2521,12 @@ SUNSTONE_PUBLIC_JS_FILES="src/sunstone/public/dist/login.js \
|
||||
src/sunstone/public/dist/main.js.map \
|
||||
src/sunstone/public/dist/main-dist.js"
|
||||
|
||||
SUNSTONE_PUBLIC_JS_GUAC_FILES="src/sunstone/guac/dist/guac.js"
|
||||
|
||||
SUNSTONE_PUBLIC_JS_CONSOLE_FILES="src/sunstone/public/dist/console/vnc.js \
|
||||
src/sunstone/public/dist/console/vnc.js.map \
|
||||
src/sunstone/public/dist/console/spice.js \
|
||||
src/sunstone/public/dist/console/spice.js.map"
|
||||
src/sunstone/public/dist/console/spice.js.map \
|
||||
src/sunstone/public/dist/console/vmrc.js \
|
||||
src/sunstone/public/dist/console/vmrc.js.map"
|
||||
|
||||
SUNSTONE_PUBLIC_DEV_DIR="src/sunstone/public"
|
||||
|
||||
|
@ -1,35 +0,0 @@
|
||||
// Guacamole Client
|
||||
|
||||
//// Application Variables ////
|
||||
var helmet = require('helmet');
|
||||
var app = require('express')();
|
||||
var http = require('http').Server(app);
|
||||
var GuacamoleLite = require('guacamole-lite');
|
||||
|
||||
var { clientOptions, clientCallbacks } = require('./options');
|
||||
|
||||
/**
|
||||
* CONSTANTS
|
||||
* */
|
||||
GUAC_PORT = process.env.PORT || 29877
|
||||
GUACD_PORT = process.env.GUACD || 4822
|
||||
|
||||
/**
|
||||
* Spinup the Guac websocket proxy on port 29877 if guacd is running
|
||||
* */
|
||||
var guacServer = new GuacamoleLite(
|
||||
{ server: http, path: '/guacamole' },
|
||||
{ host: '127.0.0.1', port: GUACD_PORT },
|
||||
clientOptions,
|
||||
clientCallbacks
|
||||
);
|
||||
|
||||
/**
|
||||
* Helmet helps you secure your Express apps
|
||||
* */
|
||||
app.use(helmet());
|
||||
|
||||
// Spin up application on port 29877
|
||||
http.listen(GUAC_PORT, function(){
|
||||
console.log('listening on *:' + GUAC_PORT);
|
||||
});
|
@ -1,60 +0,0 @@
|
||||
/**
|
||||
* CLIENT OPTIONS
|
||||
*/
|
||||
var clientOptions = {
|
||||
crypt: {
|
||||
cypher: 'AES-256-CBC',
|
||||
key: 'LSIOGCKYLSIOGCKYLSIOGCKYLSIOGCKY'
|
||||
},
|
||||
allowedUnencryptedConnectionSettings: {
|
||||
rdp: [
|
||||
'width',
|
||||
'height',
|
||||
'dpi'
|
||||
],
|
||||
vnc: [
|
||||
'width',
|
||||
'height',
|
||||
'dpi'
|
||||
],
|
||||
ssh: [
|
||||
'color-scheme',
|
||||
'font-name',
|
||||
'font-size',
|
||||
'width',
|
||||
'height',
|
||||
'dpi'
|
||||
],
|
||||
telnet: [
|
||||
'color-scheme',
|
||||
'font-name',
|
||||
'font-size',
|
||||
'width',
|
||||
'height',
|
||||
'dpi'
|
||||
]
|
||||
},
|
||||
log: { verbose: false }
|
||||
};
|
||||
|
||||
/**
|
||||
* CALLBACKS
|
||||
*/
|
||||
var callbacks = {
|
||||
processConnectionSettings: function (settings, callback) {
|
||||
if (settings.expiration && settings.expiration < Date.now()) {
|
||||
return callback(new Error('Token expired'));
|
||||
}
|
||||
|
||||
//settings.connection['drive-path'] = '/tmp/guacamole_'
|
||||
//settings.connection['enable-drive'] = false
|
||||
//settings.connection['create-drive-path'] = false
|
||||
|
||||
callback(null, settings);
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
clientOptions,
|
||||
callbacks
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
{
|
||||
"name": "one-guac",
|
||||
"version": "1.0.0",
|
||||
"description": "OpenNebula Guacamole Client",
|
||||
"main": "app.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"build": "webpack --mode=production app.js"
|
||||
},
|
||||
"author": "Sergio Betanzos",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"express": "^4.17.1",
|
||||
"guacamole-lite": "^0.6.2",
|
||||
"helmet": "^3.23.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"webpack": "^4.43.0",
|
||||
"webpack-cli": "^3.3.12"
|
||||
}
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
var path = require('path');
|
||||
|
||||
module.exports = {
|
||||
entry: './app.js',
|
||||
target: 'node',
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
filename: 'guac.js'
|
||||
},
|
||||
stats: {
|
||||
warningsFilter: /^(?!CriticalDependenciesWarning$)/
|
||||
}
|
||||
};
|
@ -309,7 +309,7 @@ class SunstoneServer < CloudServer
|
||||
return vnc.proxy(resource)
|
||||
end
|
||||
|
||||
########################################################################
|
||||
########################################################################
|
||||
# Guacamole
|
||||
########################################################################
|
||||
def startguac(id, type_connection, guac)
|
||||
|
@ -260,10 +260,10 @@ end
|
||||
#start VNC proxy
|
||||
$vnc = SunstoneVNC.new($conf, logger)
|
||||
|
||||
#init Guacamole server
|
||||
#init Guacamole proxy
|
||||
$guac = SunstoneGuac.new(logger)
|
||||
|
||||
#init VMRC server
|
||||
#init VMRC proxy
|
||||
$vmrc = SunstoneVMRC.new(logger)
|
||||
|
||||
configure do
|
||||
|
Loading…
x
Reference in New Issue
Block a user