From b0a6d83f614b25c16ce5781a15f5a0500a2aee94 Mon Sep 17 00:00:00 2001 From: Claus-Peter Huebner Date: Thu, 20 Jul 2023 23:40:01 +0200 Subject: [PATCH] add dlt-connector config settings --- backend/.env.dist | 4 ++++ backend/.env.template | 4 ++++ backend/src/config/index.ts | 8 +++++++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/backend/.env.dist b/backend/.env.dist index b6216f8e9..d836fc4ea 100644 --- a/backend/.env.dist +++ b/backend/.env.dist @@ -21,6 +21,10 @@ KLICKTIPP_PASSWORD=secret321 KLICKTIPP_APIKEY_DE=SomeFakeKeyDE KLICKTIPP_APIKEY_EN=SomeFakeKeyEN +# DltConnector +DLT_CONNECTOR=true +DLT_CONNECTOR_URL=http://localhost:6000 + # Community COMMUNITY_NAME=Gradido Entwicklung COMMUNITY_URL=http://localhost/ diff --git a/backend/.env.template b/backend/.env.template index 6c32b728d..06bf81088 100644 --- a/backend/.env.template +++ b/backend/.env.template @@ -22,6 +22,10 @@ KLICKTIPP_PASSWORD=$KLICKTIPP_PASSWORD KLICKTIPP_APIKEY_DE=$KLICKTIPP_APIKEY_DE KLICKTIPP_APIKEY_EN=$KLICKTIPP_APIKEY_EN +# DltConnector +DLT_CONNECTOR=$DLT_CONNECTOR +DLT_CONNECTOR_URL=$DLT_CONNECTOR_URL + # Community COMMUNITY_NAME=$COMMUNITY_NAME COMMUNITY_URL=$COMMUNITY_URL diff --git a/backend/src/config/index.ts b/backend/src/config/index.ts index f4a3795ba..5c28a3e74 100644 --- a/backend/src/config/index.ts +++ b/backend/src/config/index.ts @@ -19,7 +19,7 @@ const constants = { LOG_LEVEL: process.env.LOG_LEVEL ?? 'info', CONFIG_VERSION: { DEFAULT: 'DEFAULT', - EXPECTED: 'v17.2023-07-03', + EXPECTED: 'v18.2023-07-10', CURRENT: '', }, } @@ -51,6 +51,11 @@ const klicktipp = { KLICKTIPP_APIKEY_EN: process.env.KLICKTIPP_APIKEY_EN ?? 'SomeFakeKeyEN', } +const dltConnector = { + DLT_CONNECTOR: process.env.DLT_CONNECTOR === 'true' || false, + DLT_CONNECTOR_URL: process.env.DLT_CONNECTOR_URL ?? 'http://localhost:6000', +} + const community = { COMMUNITY_NAME: process.env.COMMUNITY_NAME ?? 'Gradido Entwicklung', COMMUNITY_URL: process.env.COMMUNITY_URL ?? 'http://localhost/', @@ -126,6 +131,7 @@ export const CONFIG = { ...server, ...database, ...klicktipp, + ...dltConnector, ...community, ...email, ...loginServer,