This commit is contained in:
MathieuSevignyLavallee 2024-09-23 16:24:07 -04:00
parent 5040c2189d
commit 052de4dd9d
2 changed files with 2 additions and 3 deletions

View file

@ -14,8 +14,6 @@ services:
container_name: backend container_name: backend
ports: ports:
- "3000:3000" - "3000:3000"
env_file:
- .env.auth
environment: environment:
PORT: 3000 PORT: 3000
MONGO_URI: "mongodb://mongo:27017/evaluetonsavoir" MONGO_URI: "mongodb://mongo:27017/evaluetonsavoir"

View file

@ -1,5 +1,6 @@
const fs = require('fs'); const fs = require('fs');
const path = require('path'); const path = require('path');
const pathAuthConfig = './auth_config.json';
class AuthConfig { class AuthConfig {
@ -46,7 +47,7 @@ class AuthConfig {
} }
// Utilisation de la classe ConfigManager // Utilisation de la classe ConfigManager
const configPath = path.join(__dirname, './auth_config.json'); const configPath = path.join(__dirname, pathAuthConfig);
const instance = new AuthConfig(configPath); const instance = new AuthConfig(configPath);
module.exports = instance; module.exports = instance;