-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
100 lines (84 loc) · 4 KB
/
.env.example
File metadata and controls
100 lines (84 loc) · 4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Configuration d'environnement pour Docker
# Copier ce fichier vers .env et modifier les valeurs selon vos besoins
# =============================================================================
# CONFIGURATION GÉNÉRALE
# =============================================================================
NODE_ENV=production
APP_PORT=3000
HOST=0.0.0.0
# =============================================================================
# BASE DE DONNÉES POSTGRESQL
# =============================================================================
POSTGRES_PASSWORD=HousySecure2025!ChangeThis
POSTGRES_PORT=5432
DATABASE_URL=postgresql://housy_user:HousySecure2025!ChangeThis@postgres:5432/housy_db
# =============================================================================
# CACHE REDIS
# =============================================================================
REDIS_PASSWORD=HousyRedis2025!ChangeThis
REDIS_PORT=6379
REDIS_URL=redis://:HousyRedis2025!ChangeThis@redis:6379
# =============================================================================
# CLÉS API IA (OPTIONNELLES)
# =============================================================================
# OpenAI API Key (pour GPT-4)
OPENAI_API_KEY=sk-your-openai-key-here
# Anthropic API Key (pour Claude)
ANTHROPIC_API_KEY=sk-ant-your-anthropic-key-here
# DeepSeek API Key
DEEPSEEK_API_KEY=sk-your-deepseek-key-here
# =============================================================================
# SÉCURITÉ
# =============================================================================
# Clé secrète JWT (OBLIGATOIRE - Générer une clé forte en production)
JWT_SECRET=HousyJWTSecret2025!ChangeThisInProduction
# Rounds de hachage bcrypt (plus élevé = plus sécurisé mais plus lent)
BCRYPT_ROUNDS=12
# =============================================================================
# CORS ET DOMAINES
# =============================================================================
# Origine CORS autorisée (modifier selon votre domaine)
CORS_ORIGIN=http://localhost:3000
# =============================================================================
# MONITORING (OPTIONNEL)
# =============================================================================
# Ports pour les services de monitoring
PROMETHEUS_PORT=9090
GRAFANA_PORT=3001
GRAFANA_PASSWORD=admin
# =============================================================================
# LOGS ET DÉBOGAGE
# =============================================================================
# Niveau de log (error, warn, info, debug)
LOG_LEVEL=info
# =============================================================================
# EMAILS (OPTIONNEL)
# =============================================================================
# Configuration SMTP pour l'envoi d'emails
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-app-password
# =============================================================================
# STOCKAGE FICHIERS (OPTIONNEL)
# =============================================================================
# Configuration pour le stockage de fichiers
UPLOAD_MAX_SIZE=10485760 # 10MB en bytes
ALLOWED_FILE_TYPES=jpg,jpeg,png,gif,pdf,doc,docx
# =============================================================================
# RATE LIMITING
# =============================================================================
# Limitation du nombre de requêtes par IP
RATE_LIMIT_WINDOW_MS=900000 # 15 minutes
RATE_LIMIT_MAX_REQUESTS=100 # Max 100 requêtes par fenêtre
# =============================================================================
# OLLAMA (IA LOCALE)
# =============================================================================
# URL du serveur Ollama local
OLLAMA_BASE_URL=http://localhost:11434
# =============================================================================
# SAUVEGARDE ET RESTAURATION
# =============================================================================
# Chemin pour les sauvegardes automatiques
BACKUP_PATH=/app/backups
BACKUP_RETENTION_DAYS=30