aboutsummaryrefslogtreecommitdiffstats
path: root/web/lib/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web/lib/config.ts')
-rw-r--r--web/lib/config.ts22
1 files changed, 0 insertions, 22 deletions
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;