mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
Signed-off-by: Jorge Lobo <jlobo@opennebula.io>
This commit is contained in:
parent
cd37830411
commit
5904d172dc
11967
src/fireedge/package-lock.json
generated
11967
src/fireedge/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||
|
@ -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
|
||||
|
@ -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))
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user