mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-17 04:08:52 +02:00
Prepare the application for deployment into a production environment
Configures application for production with enhanced security, performance optimizations, and automated deployment scripts. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 91318273-c764-4fd4-be04-bdc12c38af32 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/6e755801-08e8-4492-805e-ac3610de5a2a.jpg
This commit is contained in:
1 parent
0252abc41c
commit
6f065a4903
9 files changed
+651
-52
No files matched your search
+55
-21
@@ -1,32 +1,66 @@
|
||||
# Configuration de l'environnement pour RegisFlow
|
||||
# Copiez ce fichier en .env et modifiez les valeurs selon vos besoins
|
||||
# Configuration de l'environnement pour RegisFlow - PRODUCTION
|
||||
# Copiez ce fichier en .env et modifiez les valeurs OBLIGATOIRES pour la production
|
||||
|
||||
# Configuration de la base de données (DOCKER INTERNE)
|
||||
# PRÉCONFIGURÉE - PostgreSQL et RegisFlow dans Docker
|
||||
# Communication via nom de container : regisflow-db:5432
|
||||
# ==========================================
|
||||
# CONFIGURATION POSTGRESQL (SÉCURISÉE)
|
||||
# ==========================================
|
||||
# OBLIGATOIRE: Changez ce mot de passe pour la production
|
||||
POSTGRES_PASSWORD=CHANGEZ_MOI_EN_PRODUCTION_2024!
|
||||
|
||||
# Configuration PostgreSQL
|
||||
POSTGRES_PASSWORD=RegisFlow2024!
|
||||
|
||||
# Configuration automatique (NE PAS CHANGER) :
|
||||
# - Container PostgreSQL : regisflow-db
|
||||
# - Utilisateur: regisflow
|
||||
# - Mot de passe: RegisFlow2024!
|
||||
# - Base de données: regisflow
|
||||
# Configuration automatique PostgreSQL :
|
||||
# - Container: regisflow-db
|
||||
# - Utilisateur: regisflow
|
||||
# - Base de données: regisflow
|
||||
# - Port interne: 5432 (communication Docker)
|
||||
# - Port externe: 5433 (accès depuis l'hôte)
|
||||
|
||||
# Configuration de l'application
|
||||
# ==========================================
|
||||
# CONFIGURATION APPLICATION
|
||||
# ==========================================
|
||||
NODE_ENV=production
|
||||
PORT=5000
|
||||
|
||||
# Clé secrète pour les sessions (IMPORTANT: Changez cette valeur en production)
|
||||
SESSION_SECRET=your-super-secret-session-key-change-in-production
|
||||
# OBLIGATOIRE: Générez une clé secrète forte pour les sessions
|
||||
# Exemple: openssl rand -base64 32
|
||||
SESSION_SECRET=CHANGEZ_MOI_GENERER_UNE_CLE_SECRETE_FORTE
|
||||
|
||||
# Configuration du timezone
|
||||
# ==========================================
|
||||
# CONFIGURATION SYSTÈME
|
||||
# ==========================================
|
||||
# Timezone pour les logs et planifications
|
||||
TZ=Europe/Paris
|
||||
|
||||
# Note: L'application sera accessible sur http://localhost:5000 après le démarrage
|
||||
# Configuration optionnelle pour les sauvegardes
|
||||
BACKUP_RETENTION_DAYS=30
|
||||
MAX_BACKUP_COUNT=10
|
||||
# Configuration des sauvegardes automatiques
|
||||
BACKUP_RETENTION_DAYS=90
|
||||
MAX_BACKUP_COUNT=20
|
||||
|
||||
# Configuration de la purge automatique (19 mois réglementaire)
|
||||
DATA_RETENTION_MONTHS=19
|
||||
|
||||
# ==========================================
|
||||
# SÉCURITÉ PRODUCTION
|
||||
# ==========================================
|
||||
# Activer les cookies sécurisés (nécessite HTTPS)
|
||||
SECURE_COOKIES=true
|
||||
|
||||
# Domaine autorisé pour l'application (optionnel)
|
||||
# ALLOWED_DOMAIN=votre-domaine.com
|
||||
|
||||
# ==========================================
|
||||
# INSTRUCTIONS IMPORTANTES
|
||||
# ==========================================
|
||||
# 1. CHANGEZ OBLIGATOIREMENT :
|
||||
# - POSTGRES_PASSWORD
|
||||
# - SESSION_SECRET
|
||||
#
|
||||
# 2. Pour générer SESSION_SECRET :
|
||||
# openssl rand -base64 32
|
||||
#
|
||||
# 3. Pour HTTPS en production :
|
||||
# - Configurez un reverse proxy (Nginx/Apache)
|
||||
# - Obtenez un certificat SSL (Let's Encrypt)
|
||||
# - Activez SECURE_COOKIES=true
|
||||
#
|
||||
# 4. Application accessible sur :
|
||||
# - RegisFlow: http://localhost:5000
|
||||
# - PostgreSQL: localhost:5433
|
||||
Reference in new issue
Block a user