-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
38 lines (29 loc) · 978 Bytes
/
.env.example
File metadata and controls
38 lines (29 loc) · 978 Bytes
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
# Configuration de la base de données
MONGODB_URI=mongodb://localhost:27017/ecommerce-pro
# Clé secrète pour les sessions (à générer avec une chaîne aléatoire sécurisée)
JWT_SECRET=votre_jwt_secret
JWT_EXPIRE=30d
JWT_COOKIE_EXPIRE=30
# Port du serveur
PORT=5000
# Mode (développement/production)
NODE_ENV=development
# Application
APP_URL=http://localhost:3000
# Email - Développement (Mailtrap)
MAILTRAP_HOST=smtp.mailtrap.io
MAILTRAP_PORT=2525
MAILTRAP_USER=votre_user_mailtrap
MAILTRAP_PASS=votre_pass_mailtrap
# Email - Production (SendGrid)
SENDGRID_USERNAME=apikey
SENDGRID_API_KEY=votre_cle_api_sendgrid
# Email - Général
EMAIL_FROM="E-commerce Pro <noreply@ecommerce-pro.fr>"
EMAIL_REPLY_TO=support@ecommerce-pro.fr
# Sécurité
RATE_LIMIT_WINDOW_MS=15 * 60 * 1000 # 15 minutes
RATE_LIMIT_MAX=100 # 100 requêtes par fenêtre
# Mode maintenance
MAINTENANCE_MODE=false
MAINTENANCE_MESSAGE="Service en maintenance. Veuillez réessayer plus tard."