diff --git a/docker-compose.yaml b/docker-compose.yaml index 9f91bd6..077e2ae 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -14,8 +14,6 @@ services: container_name: backend ports: - "3000:3000" - env_file: - - .env.auth environment: PORT: 3000 MONGO_URI: "mongodb://mongo:27017/evaluetonsavoir" diff --git a/server/config/auth.js b/server/config/auth.js index 493dd0c..fffb426 100644 --- a/server/config/auth.js +++ b/server/config/auth.js @@ -1,5 +1,6 @@ const fs = require('fs'); const path = require('path'); +const pathAuthConfig = './auth_config.json'; class AuthConfig { @@ -46,7 +47,7 @@ class AuthConfig { } // Utilisation de la classe ConfigManager -const configPath = path.join(__dirname, './auth_config.json'); +const configPath = path.join(__dirname, pathAuthConfig); const instance = new AuthConfig(configPath); module.exports = instance;