From ff4effa6637949ccbf42efa908c0f686313fd40e Mon Sep 17 00:00:00 2001 From: bolbol Date: Fri, 21 Aug 2026 21:43:47 +0100 Subject: [PATCH] fix: retire dotenv override:true, exclut .env de l'image (cause racine ECONNREFUSED Baserow) --- .dockerignore | 11 +++++++++++ .env.example | 2 +- README.md | 2 +- server.js | 2 +- 4 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..07e27e2 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,11 @@ +.env +.env.* +.git +.gitignore +node_modules +npm-debug.log +.DS_Store +Thumbs.db +Fichiers-cibles +*.zip +*.log diff --git a/.env.example b/.env.example index e526ef3..acb4e32 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,6 @@ JWT_SECRET=your_jwt_secret_here -BASEROW_API_URL=https://baserow.bolbol.tn/api/ +BASEROW_API_URL=http://baserow.bolbol.tn/api/ BASEROW_TOKEN=your_baserow_token BASEROW_TABLE_MARCHES=856 BASEROW_TABLE_PIPELINE=872 diff --git a/README.md b/README.md index 1f1ee99..a65f6fd 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ Tous les endpoints données acceptent : | Variable | Requis | Description | |----------|--------|-------------| | `JWT_SECRET` | ✓ | Clé secrète JWT | -| `BASEROW_API_URL` | ✓ | URL Baserow (`https://baserow.bolbol.tn/api/`) | +| `BASEROW_API_URL` | ✓ | URL Baserow (`http://baserow.bolbol.tn/api/`) | | `BASEROW_TOKEN` | ✓ | Token d'accès Baserow | | `BASEROW_TABLE_MARCHES` | ✓ | ID table marchés (ex: 856) | | `BASEROW_TABLE_PIPELINE` | ✓ | ID table pipeline (ex: 872) | diff --git a/server.js b/server.js index e0f7b26..55ef2e3 100644 --- a/server.js +++ b/server.js @@ -1,4 +1,4 @@ -require('dotenv').config({ override: true }); +require('dotenv').config(); const express = require('express'); const cors = require('cors');