mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-21 13:57:56 +03:00
(cherry picked from commit 61ce93466bbfa41079d45df7e40871fd0890e8a2)
This commit is contained in:
parent
f7779746ad
commit
d3b5febb37
@ -44,12 +44,6 @@ const { APP_URL, STATIC_FILES_URL } = require('client/constants')
|
||||
|
||||
const APP_NAMES = Object.keys(defaultApps)
|
||||
|
||||
const APP_CONFIG = {
|
||||
[defaultApps.provision.name]: getProvisionConfig() || {},
|
||||
[defaultApps.sunstone.name]:
|
||||
getSunstoneConfig({ includeProtectedConfig: false }) || {},
|
||||
}
|
||||
|
||||
const ensuredScriptValue = (value) =>
|
||||
JSON.stringify(value).replace(/</g, '\\u003c')
|
||||
|
||||
@ -58,6 +52,12 @@ const router = Router()
|
||||
router.get('*', async (req, res) => {
|
||||
const remoteJWT = {}
|
||||
|
||||
const APP_CONFIG = {
|
||||
[defaultApps.provision.name]: getProvisionConfig() || {},
|
||||
[defaultApps.sunstone.name]:
|
||||
getSunstoneConfig({ includeProtectedConfig: false }) || {},
|
||||
}
|
||||
|
||||
const appConfig = getFireedgeConfig()
|
||||
if (appConfig?.auth === 'remote') {
|
||||
remoteJWT.remote = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user