api/config/default.js
require("dotenv").config({ path: `${__dirname}/../../.env` });
module.exports = {
ENVIRONMENT: undefined,
RELEASE: undefined,
PORT: 8080,
IMAGES_ROOTDIR: `${__dirname}/../public/images`,
FONT_ROOTDIR: `${__dirname}/../src/assets/fonts`,
RUN_CRONS: false,
ENABLE_SENTRY: true,
ENABLE_SENDINBLUE: true, // TODO: default false
MAIL_TRANSPORT: null, // BREVO / SMTP / null (pas d'envoi d'email)
SMTP_HOST: undefined,
SMTP_PORT: undefined,
ENABLE_ANTIVIRUS: true,
ENABLE_FLATTEN_ERROR_LOGS: true, // Print error stack without newlines on stderr
API_URL: "http://localhost:8080",
APP_URL: "http://localhost:8081",
ADMIN_URL: "http://localhost:8082",
SENTRY_TRACING_SAMPLE_RATE: 0.8,
SENTRY_PROFILE_SAMPLE_RATE: 0.1,
MONGO_URL: undefined,
JWT_SECRET: "not-so-secret",
SUPPORT_URL: "http://localhost:3000",
SUPPORT_APIKEY: undefined,
KNOWLEDGEBASE_URL: "http://localhost:8084",
API_ANALYTICS_ENDPOINT: "http://localhost:8085",
API_ANALYTICS_API_KEY: "api-key",
API_ANTIVIRUS_ENDPOINT: "http://localhost:8089",
ES_ENDPOINT: undefined,
SENDINBLUEKEY: undefined,
DIAGORIENTE_URL: undefined,
DIAGORIENTE_TOKEN: undefined,
FRANCE_CONNECT_URL: undefined,
FRANCE_CONNECT_CLIENT_ID: undefined,
FRANCE_CONNECT_CLIENT_SECRET: undefined,
CELLAR_ENDPOINT: undefined,
CELLAR_KEYID: undefined,
CELLAR_KEYSECRET: undefined,
BUCKET_NAME: undefined,
PUBLIC_BUCKET_NAME: undefined,
CELLAR_ENDPOINT_SUPPORT: undefined,
CELLAR_KEYID_SUPPORT: undefined,
CELLAR_KEYSECRET_SUPPORT: undefined,
PUBLIC_BUCKET_NAME_SUPPORT: undefined,
FILE_ENCRYPTION_SECRET_SUPPORT: undefined,
FILE_ENCRYPTION_SECRET: undefined,
QPV_USERNAME: undefined,
QPV_PASSWORD: undefined,
API_ENGAGEMENT_URL: undefined,
API_ENGAGEMENT_KEY: undefined,
API_ASSOCIATION_ES_ENDPOINT: undefined,
API_ASSOCIATION_CELLAR_ENDPOINT: undefined,
API_ASSOCIATION_CELLAR_KEYID: undefined,
API_ASSOCIATION_CELLAR_KEYSECRET: undefined,
SLACK_BOT_TOKEN: undefined,
SLACK_BOT_CHANNEL: undefined,
JVA_TOKEN: undefined,
JVA_API_KEY: undefined,
REDIS_URL: undefined,
API_DEMARCHE_SIMPLIFIEE_TOKEN: undefined,
PM2_SLACK_URL: undefined,
API_ANTIVIRUS_KEY: undefined,
TASK_QUEUE_PREFIX: undefined,
TASK_MONITOR_ENABLE_AUTH: true,
TASK_MONITOR_USER: undefined,
TASK_MONITOR_SECRET: undefined,
ENABLE_2FA: false,
LOG_LEVEL: "info", // error, warn, info, http, debug
DO_MIGRATION: true,
};