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

Config => Add new env var

parent d4b982c2
No related branches found
No related tags found
No related merge requests found
openapi: 3.1.0
info:
title: Dojo API
version: 3.3.0
version: 3.4.0
description: |
**Backend API of the Dojo project.**
......
......@@ -57,7 +57,7 @@ class Config {
};
public readonly exercise: {
maxSameName: number; resultsFolder: string, pipelineResultsFolder: string; default: {
maxSameName: number; maxPerAssignment: number; resultsFolder: string, pipelineResultsFolder: string; default: {
description: string; visibility: string;
};
};
......@@ -126,6 +126,7 @@ class Config {
this.exercise = {
maxSameName : Number(process.env.EXERCISE_MAX_SAME_NAME || 0),
maxPerAssignment : Number(process.env.EXERCISE_MAX_PER_ASSIGNMENT || 2),
resultsFolder : process.env.EXERCISE_RESULTS_FOLDER?.convertWithEnvVars() ?? '',
pipelineResultsFolder: process.env.EXERCISE_PIPELINE_RESULTS_FOLDER ?? '', //Do not use convertWithEnvVars() because it is used in the exercise creation and muste be interpreted at exercise runtime
default : {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment