Remove hardcoded values & updated env file
Some checks failed
Build and Push to Registry / build-and-push (push) Failing after 40s

This commit is contained in:
Sadrinho27 2025-09-12 11:55:54 +02:00
parent ad58103034
commit 18936f18e7
6 changed files with 13 additions and 18 deletions

View File

@ -1,3 +1,7 @@
# Configuration IDNOT
IDNOT_ANNUARY_BASE_URL=
IDNOT_API_KEY=
# Configuration OVH
OVH_APP_KEY=
OVH_APP_SECRET=
@ -26,14 +30,5 @@ DECLINED= 4000 0025 0000 3155 #Paiement refusé
# Configuration serveur
APP_HOST=
PORT=
# Configuration PostgreSQL
DB_HOST=
DB_PORT=
DB_NAME=
DB_USER=
DB_PASSWORD=
# Configuration idnot
IDNOT_API_KEY=
API_BASE_URL=
DEFAULT_STORAGE=

View File

@ -4,7 +4,7 @@ const fetch = require('node-fetch');
const { SDKSignerClient } = require('sdk-signer-client');
// Quick test configuration
const BASE_URL = 'http://localhost:8080';
const BASE_URL = process.env.API_BASE_URL;
const ENDPOINT = '/api/v1/idnot/user/rattachements'; // Base endpoint, idnot will be added as path parameter
const signerConfig = {

View File

@ -4,11 +4,11 @@ dotenv.config();
export const config = {
port: process.env.PORT || 8080,
defaultStorage: process.env.DEFAULT_STORAGE || 'https://dev3.4nkweb.com/storage',
appHost: process.env.APP_HOST || 'http://localhost:3000',
defaultStorage: process.env.DEFAULT_STORAGE,
appHost: process.env.APP_HOST,
cors: {
origin: 'http://localhost:3000',
origin: process.env.APP_HOST,
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
allowedHeaders: ['Content-Type', 'x-session-id', 'Authorization'],
credentials: true

View File

@ -1,5 +1,5 @@
export const stripeConfig = {
STRIPE_SECRET_KEY: process.env.STRIPE_SECRET_KEY,
STRIPE_WEBHOOK_SECRET: process.env.STRIPE_WEBHOOK_SECRET,
APP_HOST: process.env.APP_HOST || 'http://localhost:3000',
APP_HOST: process.env.APP_HOST,
};

View File

@ -3,7 +3,7 @@
const fetch = require('node-fetch');
// Test configuration
const BASE_URL = 'http://localhost:8080';
const BASE_URL = process.env.API_BASE_URL;
const ENDPOINT = '/api/v1/idnot/user'; // Base endpoint, idnot will be added as path parameter
// Test cases for the rattachements endpoint

View File

@ -15,7 +15,7 @@
const fetch = require('node-fetch');
const API_BASE = process.env.API_BASE || 'http://localhost:8080';
const API_BASE = process.env.API_BASE_URL;
const TEST_DURATION = 60000; // 1 minute test
const CHECK_INTERVAL = 2000; // Check every 2 seconds