Files
Regisflow/.env.example
T
michaelschal 5bf67982b9 Enable simple one-command install with preconfigured default passwords
Adds install script and documentation for easy setup; configures default passwords in .env.example.

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/b677ee4d-d452-4e7b-9ac9-ca1e468cd60b.jpg
2025-07-09 21:52:47 +00:00

67 lines
2.1 KiB
Bash

# Configuration de l'environnement pour RegisFlow - PRODUCTION
# Copiez ce fichier en .env et modifiez les valeurs OBLIGATOIRES pour la production
# ==========================================
# CONFIGURATION POSTGRESQL (SÉCURISÉE)
# ==========================================
# Mot de passe PostgreSQL (pré-configuré pour installation simple)
POSTGRES_PASSWORD=RegisFlow2024!PostgreSQL
# 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 APPLICATION
# ==========================================
NODE_ENV=production
PORT=5000
# Clé secrète pour les sessions (pré-configurée pour installation simple)
SESSION_SECRET=RegisFlow2024SessionSecretKey1234567890ABCDEF
# ==========================================
# CONFIGURATION SYSTÈME
# ==========================================
# Timezone pour les logs et planifications
TZ=Europe/Paris
# 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. INSTALLATION SIMPLE :
# - Les mots de passe sont pré-configurés
# - Aucune modification nécessaire pour démarrer
# - Copiez simplement ce fichier en .env
#
# 2. Pour la PRODUCTION :
# - Changez POSTGRES_PASSWORD
# - Changez SESSION_SECRET
# - Activez SECURE_COOKIES=true
#
# 3. Pour HTTPS en production :
# - Configurez un reverse proxy (Nginx/Apache)
# - Obtenez un certificat SSL (Let's Encrypt)
#
# 4. Application accessible sur :
# - RegisFlow: http://localhost:5000
# - PostgreSQL: localhost:5433