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:
parent
628cdb7cab
commit
515dbc8612
@ -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`
|
||||
|
@ -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`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user