-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
53 lines (42 loc) · 1.43 KB
/
.env.example
File metadata and controls
53 lines (42 loc) · 1.43 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
# Variables d'Environnement - Register Manager API
# Copier ce fichier vers .env et remplir les valeurs requises
# 🌍 Configuration de Base
NODE_ENV=development
PORT=3000
HOST=localhost
# 🔒 Configuration CORS
CORS_ORIGINS=http://localhost:3000,http://localhost:3001
# 🗄️ Base de Données
DATABASE_URL=postgresql://user:password@localhost:5434/mydb
# 🔐 Configuration JWT
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
JWT_ACCESS_TOKEN_EXPIRY=1800000
JWT_REFRESH_TOKEN_EXPIRY=604800000
# ⏱️ Configuration des Tokens (en millisecondes)
EMAIL_VERIFICATION_TOKEN_EXPIRY=86400000
PASSWORD_RESET_TOKEN_EXPIRY=3600000
# 📧 Configuration de Vérification Email
EMAIL_VERIFICATION_ENABLED=true
EMAIL_VERIFICATION_REQUIRED=true
# 🔑 Configuration de Réinitialisation de Mot de Passe
PASSWORD_RESET_ENABLED=true
# 🚦 Configuration du Rate Limiting (Throttling)
THROTTLER_SHORT_TTL=60000
THROTTLER_SHORT_LIMIT=20
THROTTLER_MEDIUM_TTL=600000
THROTTLER_MEDIUM_LIMIT=40
# 📬 Configuration Email (SMTP)
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_SECURE=false
MAIL_USER=your-email@gmail.com
MAIL_PASSWORD=your-app-password
MAIL_FROM_NAME=Register Manager
MAIL_FROM_ADDRESS=noreply@registerManager.com
# 🌐 URLs
FRONTEND_URL=http://localhost:3001
# 🔧 Configuration Super Admin (pour le seed)
SUPER_ADMIN_EMAIL=admin@registerManager.com
SUPER_ADMIN_PASSWORD=AdminPassword123!
SUPER_ADMIN_FIRSTNAME=Admin
SUPER_ADMIN_LASTNAME=User