From 80bb8a108f29331cdb2f2695f6801beee104dc89 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Thu, 8 Feb 2024 15:14:23 +0000 Subject: [refactor] Move the different packages to the package subdir --- web/lib/config.ts | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 web/lib/config.ts (limited to 'web/lib/config.ts') diff --git a/web/lib/config.ts b/web/lib/config.ts deleted file mode 100644 index ec042b54..00000000 --- a/web/lib/config.ts +++ /dev/null @@ -1,22 +0,0 @@ -function buildAuthentikConfig() { - let { AUTHENTIK_ID, AUTHENTIK_SECRET, AUTHENTIK_ISSUER } = process.env; - - if (!AUTHENTIK_ID || !AUTHENTIK_SECRET || !AUTHENTIK_ISSUER) { - return undefined; - } - - return { - clientId: AUTHENTIK_ID, - clientSecret: AUTHENTIK_SECRET, - issuer: AUTHENTIK_ISSUER, - }; -} - -const serverConfig = { - api_url: process.env.API_URL || "http://localhost:3000", - auth: { - authentik: buildAuthentikConfig(), - }, -}; - -export default serverConfig; -- cgit v1.2.3-70-g09d2