Files
crowdlending-app/.env.example
T

27 lines
819 B
Bash

# =============================================================================
# Crowdlending App — Variables d'environnement
# Copier ce fichier en .env et adapter les valeurs
# NE JAMAIS commiter .env dans git
# =============================================================================
# --- Développement local ---
# NODE_ENV=development
# PORT=4000
# JWT_SECRET=dev-secret-local
# JWT_EXPIRES_IN=7d
# DB_PATH=./data/crowdlending.db
# UPLOAD_DIR=./uploads
# DATA_DIR=../data # chemin vers le dossier data/ (relatif au dossier backend/ ou absolu)
# --- Production (Docker) ---
NODE_ENV=production
PORT=4000
# Générer avec : openssl rand -hex 32
JWT_SECRET=change-me-in-production
JWT_EXPIRES_IN=7d
# Chemins dans le container (ne pas modifier)
DB_PATH=/app/data/crowdlending.db
UPLOAD_DIR=/app/uploads