-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
80 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.github | ||
.idea | ||
.gitignore | ||
dist | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
STANDALONE_SINGLE_SPA=false | ||
VUE_APP_KEYCLOAK_URL=https://login.verbis.dkfz.de/ | ||
VUE_APP_KEYCLOAK_REALM=test-realm-01 | ||
VUE_APP_KEYCLOAK_CLIENT_ID=bridgehead-test | ||
VUE_APP_KEYCLOAK_REFRESH_TOKEN_TIME_IN_MINUTES=5 | ||
VUE_APP_PROJECT_MANAGER_BACKEND_URL=http://localhost:8097 | ||
VUE_APP_PUBLIC_PATH=/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
STANDALONE_SINGLE_SPA=true | ||
VUE_APP_KEYCLOAK_URL=https://login.verbis.dkfz.de/ | ||
VUE_APP_KEYCLOAK_REALM=test-realm-01 | ||
VUE_APP_KEYCLOAK_CLIENT_ID=bridgehead-test | ||
VUE_APP_KEYCLOAK_REFRESH_TOKEN_TIME_IN_MINUTES=5 | ||
VUE_APP_PROJECT_MANAGER_BACKEND_URL=http://localhost:8097 | ||
VUE_APP_PUBLIC_PATH=/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
STANDALONE_SINGLE_SPA=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
STANDALONE_SINGLE_SPA=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"VUE_APP_PROJECT_MANAGER_BACKEND_URL" : "${VUE_APP_PROJECT_MANAGER_BACKEND_URL}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"realm": "${VUE_APP_KEYCLOAK_REALM}", | ||
"auth-server-url": "${VUE_APP_KEYCLOAK_URL}", | ||
"ssl-required": "external", | ||
"resource": "${VUE_APP_KEYCLOAK_CLIENT_ID}", | ||
"public-client": true, | ||
"confidential-port": 0 | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
envsubst < /usr/share/nginx/html/keycloak.json > /usr/share/nginx/html/keycloak.temp.json | ||
mv /usr/share/nginx/html/keycloak.temp.json /usr/share/nginx/html/keycloak.json | ||
|
||
envsubst < /usr/share/nginx/html/config.json > /usr/share/nginx/html/config.temp.json | ||
mv /usr/share/nginx/html/config.temp.json /usr/share/nginx/html/config.json | ||
|
||
#envsubst '${TEILER_DASHBOARD_SERVER_NAME} ${TEILER_ORCHESTRATOR_URL}'< /etc/nginx/nginx.template.conf > /etc/nginx/nginx.conf | ||
|
||
echo 'Start Teiler Dashboard in NGINX in foreground (non-daemon-mode)' | ||
exec nginx -g 'daemon off;' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"VUE_APP_PROJECT_MANAGER_BACKEND_URL" : "http://localhost:8097" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// configLoader.ts | ||
let config: any = null; | ||
let isLoading = false; // Track whether the config is being loaded | ||
|
||
const loadConfig = async () => { | ||
if (!isLoading) { | ||
isLoading = true; // Prevent multiple concurrent loads | ||
try { | ||
const response = await fetch('/config.json'); | ||
config = await response.json(); | ||
} catch (error) { | ||
console.error('Failed to load config.json:', error); | ||
throw new Error('Configuration loading failed'); | ||
} finally { | ||
isLoading = false; // Reset loading state | ||
} | ||
} | ||
|
||
// Wait until config is loaded | ||
while (config === null) { | ||
await new Promise(resolve => setTimeout(resolve, 100)); // Polling | ||
} | ||
}; | ||
|
||
export const getConfig = async () => { | ||
if (config === null) { | ||
await loadConfig(); // Load the config if it's not already loaded | ||
} | ||
return config; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters