Skip to content
Snippets Groups Projects
Commit c437e155 authored by michael.minelli's avatar michael.minelli
Browse files

Config => Move some config to shared ones

parent efe1bf31
No related branches found
No related tags found
No related merge requests found
......@@ -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 || ''
}
}
};
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment