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

B #5422: fix login guacamole (#1433)

This commit is contained in:
Jorge Miguel Lobo Escalona 2021-09-03 11:47:39 +02:00 committed by GitHub
parent 5360d68ecc
commit cb31b4a295
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,10 +17,13 @@
const GuacamoleOpennebula = require('opennebula-guacamole')
const { getConfig } = require('server/utils/yml')
const { messageTerminal } = require('server/utils/general')
const { genFireedgeKey } = require('server/utils/server')
const { genFireedgeKey, genPathResources } = require('server/utils/server')
const { writeInLogger } = require('server/utils/logger')
const { endpointGuacamole } = require('server/utils/constants/defaults')
// set paths
genPathResources()
// set fireedge_key
genFireedgeKey()
@ -41,7 +44,7 @@ const configError = (error) => ({
const clientOptions = {
crypt: {
cypher: 'AES-256-CBC',
key: (global && global.path && global.paths.FIREEDGE_KEY) || ''
key: (global && global.paths && global.paths.FIREEDGE_KEY) || ''
},
allowedUnencryptedConnectionSettings: {
rdp: ['width', 'height', 'dpi'],