Remove hardcoded values & updated env file
Some checks failed
Build and Push to Registry / build-and-push (push) Failing after 40s
Some checks failed
Build and Push to Registry / build-and-push (push) Failing after 40s
This commit is contained in:
parent
ad58103034
commit
18936f18e7
17
.env.exemple
17
.env.exemple
@ -1,3 +1,7 @@
|
|||||||
|
# Configuration IDNOT
|
||||||
|
IDNOT_ANNUARY_BASE_URL=
|
||||||
|
IDNOT_API_KEY=
|
||||||
|
|
||||||
# Configuration OVH
|
# Configuration OVH
|
||||||
OVH_APP_KEY=
|
OVH_APP_KEY=
|
||||||
OVH_APP_SECRET=
|
OVH_APP_SECRET=
|
||||||
@ -26,14 +30,5 @@ DECLINED= 4000 0025 0000 3155 #Paiement refusé
|
|||||||
|
|
||||||
# Configuration serveur
|
# Configuration serveur
|
||||||
APP_HOST=
|
APP_HOST=
|
||||||
PORT=
|
API_BASE_URL=
|
||||||
|
DEFAULT_STORAGE=
|
||||||
# Configuration PostgreSQL
|
|
||||||
DB_HOST=
|
|
||||||
DB_PORT=
|
|
||||||
DB_NAME=
|
|
||||||
DB_USER=
|
|
||||||
DB_PASSWORD=
|
|
||||||
|
|
||||||
# Configuration idnot
|
|
||||||
IDNOT_API_KEY=
|
|
||||||
|
@ -4,7 +4,7 @@ const fetch = require('node-fetch');
|
|||||||
const { SDKSignerClient } = require('sdk-signer-client');
|
const { SDKSignerClient } = require('sdk-signer-client');
|
||||||
|
|
||||||
// Quick test configuration
|
// 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 ENDPOINT = '/api/v1/idnot/user/rattachements'; // Base endpoint, idnot will be added as path parameter
|
||||||
|
|
||||||
const signerConfig = {
|
const signerConfig = {
|
||||||
|
@ -4,11 +4,11 @@ dotenv.config();
|
|||||||
|
|
||||||
export const config = {
|
export const config = {
|
||||||
port: process.env.PORT || 8080,
|
port: process.env.PORT || 8080,
|
||||||
defaultStorage: process.env.DEFAULT_STORAGE || 'https://dev3.4nkweb.com/storage',
|
defaultStorage: process.env.DEFAULT_STORAGE,
|
||||||
appHost: process.env.APP_HOST || 'http://localhost:3000',
|
appHost: process.env.APP_HOST,
|
||||||
|
|
||||||
cors: {
|
cors: {
|
||||||
origin: 'http://localhost:3000',
|
origin: process.env.APP_HOST,
|
||||||
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
|
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
|
||||||
allowedHeaders: ['Content-Type', 'x-session-id', 'Authorization'],
|
allowedHeaders: ['Content-Type', 'x-session-id', 'Authorization'],
|
||||||
credentials: true
|
credentials: true
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
export const stripeConfig = {
|
export const stripeConfig = {
|
||||||
STRIPE_SECRET_KEY: process.env.STRIPE_SECRET_KEY,
|
STRIPE_SECRET_KEY: process.env.STRIPE_SECRET_KEY,
|
||||||
STRIPE_WEBHOOK_SECRET: process.env.STRIPE_WEBHOOK_SECRET,
|
STRIPE_WEBHOOK_SECRET: process.env.STRIPE_WEBHOOK_SECRET,
|
||||||
APP_HOST: process.env.APP_HOST || 'http://localhost:3000',
|
APP_HOST: process.env.APP_HOST,
|
||||||
};
|
};
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
const fetch = require('node-fetch');
|
const fetch = require('node-fetch');
|
||||||
|
|
||||||
// Test configuration
|
// 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
|
const ENDPOINT = '/api/v1/idnot/user'; // Base endpoint, idnot will be added as path parameter
|
||||||
|
|
||||||
// Test cases for the rattachements endpoint
|
// Test cases for the rattachements endpoint
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
const fetch = require('node-fetch');
|
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 TEST_DURATION = 60000; // 1 minute test
|
||||||
const CHECK_INTERVAL = 2000; // Check every 2 seconds
|
const CHECK_INTERVAL = 2000; // Check every 2 seconds
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user