1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

F #3951: add guacamole-opennebula (#885)

Signed-off-by: Jorge Lobo <jlobo@opennebula.io>
This commit is contained in:
Jorge Miguel Lobo Escalona 2021-02-26 09:43:01 +01:00 committed by GitHub
parent cd37830411
commit 5904d172dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11972 additions and 5 deletions

File diff suppressed because it is too large Load Diff

View File

@ -77,7 +77,7 @@
"express": "4.17.1",
"fs-extra": "9.0.1",
"fuse.js": "6.4.1",
"guacamole-lite": "0.6.3",
"guacamole-opennebula": "1.0.0",
"helmet": "4.1.1",
"http": "0.0.1-security",
"http-proxy-middleware": "1.0.5",

View File

@ -114,7 +114,7 @@ if (userLog === defaultTypeLog && global && global.FIREEDGE_LOG) {
app.use(helmet.hidePoweredBy())
app.use(compression())
app.use(`${basename}/client`, express.static(path.resolve(__dirname, frontPath)))
app.use(`${basename}/client/*`, express.static(path.resolve(__dirname, frontPath)))
// log request
app.use(log)
// cors

View File

@ -13,7 +13,7 @@
/* limitations under the License. */
/* -------------------------------------------------------------------------- */
const GuacamoleLite = require('guacamole-lite')
const GuacamoleOpennebula = require('guacamole-opennebula')
const { getConfig } = require('server/utils/yml')
const { messageTerminal } = require('server/utils/general')
const { genFireedgeKey } = require('server/utils/server')
@ -65,13 +65,13 @@ const guacamole = appServer => {
appServer.constructor.name &&
appServer.constructor.name === 'Server'
) {
const guacamole = new GuacamoleLite(
const guacamoleServer = new GuacamoleOpennebula(
{ server: appServer, path: endpointGuacamole },
{ host: guacdHost, port: guacdPort },
clientOptions,
clientCallbacks
)
guacamole.on('error', (clientConnection, error) => {
guacamoleServer.on('error', (clientConnection, error) => {
messageTerminal(configError(error))
})
}