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

Config => Add exercices values

parent b0f4e83a
Branches
Tags
No related merge requests found
import Toolbox from '../shared/Toolbox';
import Toolbox from '../shared/helpers/Toolbox';
class Config {
......@@ -28,6 +28,10 @@ class Config {
default: { description: string; initReadme: boolean; sharedRunnersEnabled: boolean; visibility: string; wikiEnabled: boolean; template: string };
};
public exercice: {
maxSameName: number; default: { description: string; visibility: string; };
};
public readonly userPasswordLength: number;
public readonly userPasswordSaltRounds: number;
......@@ -81,6 +85,14 @@ class Config {
}
};
this.exercice = {
maxSameName: Number(process.env.EXERCICE_MAX_SAME_NAME),
default : {
description: process.env.EXERCICE_DEFAULT_DESCRIPTION,
visibility : process.env.EXERCICE_DEFAULT_VISIBILITY
}
};
this.userPasswordLength = Number(process.env.USER_PASSWORD_LENGTH);
this.userPasswordSaltRounds = Number(process.env.USER_PASSWORD_SALT_ROUNDS);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment