Skip to content

Commit 2027001

Browse files
authored
Merge pull request #25 from workfloworchestrator/add-workflow-link-env
Added workflow link to config
2 parents 3aa4bcf + d2ebd71 commit 2027001

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ KEYCLOAK_PORT=8085
2424
USE_WEBSOCKET=false
2525
USE_THEME_TOGGLE=false
2626

27+
SHOW_WORKFLOW_INFORMATION_LINK=false
28+
WORKFLOW_INFORMATION_LINK_URL=http://localhost:8080

configuration/configuration.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const PROCESSES_ENDPOINT = '/processes';
1616
export const SUBSCRIPTION_ACTIONS_ENDPOINT = '/subscriptions/workflows';
1717
export const SUBSCRIPTION_PROCESSES_ENDPOINT =
1818
'/processes/process-subscriptions-by-subscription-id';
19+
export const DEFAULT_WORKFLOW_INFORMATION_LINK_URL = 'http://localhost:8080';
1920

2021
export const getInitialOrchestratorConfig = (): OrchestratorConfig => {
2122
const orchestratorGraphqlBaseUrl =
@@ -48,5 +49,11 @@ export const getInitialOrchestratorConfig = (): OrchestratorConfig => {
4849
authActive: process.env.AUTH_ACTIVE?.toLowerCase() != 'false',
4950
useWebSockets: process.env.USE_WEB_SOCKETS?.toLowerCase() === 'true',
5051
useThemeToggle: process.env.USE_THEME_TOGGLE?.toLowerCase() === 'true',
52+
workflowInformationLinkUrl:
53+
process.env.WORKFLOW_INFORMATION_LINK_URL ??
54+
DEFAULT_WORKFLOW_INFORMATION_LINK_URL,
55+
showWorkflowInformationLink:
56+
process.env.SHOW_WORKFLOW_INFORMATION_LINK?.toLowerCase() ===
57+
'true',
5158
};
5259
};

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)