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

F OpenNebula/One#5422: add baseURL websockets

Signed-off-by: Jorge Lobo <jlobo@opennebula.io>
This commit is contained in:
Jorge Lobo 2021-06-22 10:38:20 +02:00
parent 628cdb7cab
commit 515dbc8612
No known key found for this signature in database
GPG Key ID: 9C21660F7B06905E
2 changed files with 6 additions and 6 deletions

View File

@ -27,7 +27,7 @@ export const TIME_HIDE_LOGO = 1500
export const _APPS = defaultApps
export const APPS = Object.keys(defaultApps)
export const APP_URL = defaultAppName ? `/${defaultAppName}` : ''
export const WEBSOCKET_URL = `${APP_URL}/provision`
export const WEBSOCKET_URL = `${APP_URL}/websockets/provision`
export const STATIC_FILES_URL = `${APP_URL}/client/assets`
export const IMAGES_URL = `${STATIC_FILES_URL}/images`

View File

@ -14,7 +14,7 @@
/* -------------------------------------------------------------------------- */
const appName = 'fireedge'
const prepend = `${appName ? `/${appName}/` : '/'}`
const baseUrl = `${appName ? `/${appName}/` : '/'}`
const apps = {
flow: {
name: 'flow',
@ -41,11 +41,11 @@ const defaults = {
},
defaultFilesWebsockets: {
hooks: {
path: `${prepend}hooks`,
path: `${baseUrl}websockets/hooks`,
methods: ['GET', 'POST']
},
provision: {
path: `${prepend}provision`,
path: `${baseUrl}websockets/provision`,
methods: ['GET', 'POST']
}
},
@ -99,8 +99,8 @@ const defaults = {
defaultKeyFilename: `${appName}_key`,
defaultVmrcTokens: 'sunstone_vmrc_tokens/',
defaultBaseURL: '',
endpointVmrc: `${prepend}vmrc`,
endpointGuacamole: `${prepend}guacamole`,
endpointVmrc: `${baseUrl}vmrc`,
endpointGuacamole: `${baseUrl}guacamole`,
defaultNamespace: 'one.',
defaultMessageInvalidZone: 'Invalid Zone',
default2FAIssuer: `${appName}-UI`,