From c437e155905e98c2dfb9f64f7947015cbd424617 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <michael@minelli.me>
Date: Thu, 19 Oct 2023 16:01:36 +0200
Subject: [PATCH] Config => Move some config to shared ones

---
 config/SharedConfig.ts | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/config/SharedConfig.ts b/config/SharedConfig.ts
index cbcb181..a4fdb6b 100644
--- a/config/SharedConfig.ts
+++ b/config/SharedConfig.ts
@@ -4,7 +4,17 @@ class SharedConfig {
     public readonly logsFolder: string;
 
     public gitlab: {
-        apiURL: string
+        URL: string, apiURL: string
+    };
+
+    public readonly login: {
+        gitlab: {
+            client: {
+                id: string
+            }, url: {
+                redirect: string
+            }
+        }
     };
 
 
@@ -14,7 +24,17 @@ class SharedConfig {
         this.logsFolder = process.env.LOGS_FOLDER || '';
 
         this.gitlab = {
-            apiURL: process.env.GITLAB_API_URL || ''
+            URL: process.env.GITLAB_URL || '', apiURL: process.env.GITLAB_API_URL || ''
+        };
+
+        this.login = {
+            gitlab: {
+                client: {
+                    id: process.env.LOGIN_GITLAB_CLIENT_ID || ''
+                }, url: {
+                    redirect: process.env.LOGIN_GITLAB_URL_REDIRECT || ''
+                }
+            }
         };
     }
 }
-- 
GitLab