-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
85 lines (66 loc) · 3.02 KB
/
.env.example
File metadata and controls
85 lines (66 loc) · 3.02 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
# ------------------ 🍃 MongoDB -------------------
DB_NAME=admin_panel_service_db
DB_URL=mongodb://localhost/admin_panel_service_db
# ------------------ 🔌 Server --------------------
PORT_NUMBER=8081
# ------------------ 🌐 Environment ---------------
NODE_ENV=development
# ------------------ 🔴 Redis Configuration ------------------
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_PASSWORD= # Leave blank if no password
REDIS_DB=0 # Default DB index
REDIS_MAX_RETRY_ATTEMPTS=10
REDIS_RETRY_INITIAL_DELAY=100 # milliseconds
REDIS_RETRY_MAX_DELAY=2000 # milliseconds
# ------------------ ⏳ Global Rate Limiter ------------------
RATE_LIMIT_WINDOW=10 # minutes
RATE_LIMIT_MAX=100 # requests per window
# ------------------ 📧 Email Configuration (SMTP + Branding) ---
# Gmail SMTP Setup (Get App Password: https://myaccount.google.com/apppasswords)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=your-email@gmail.com
SMTP_PASSWORD=xxxx xxxx xxxx xxxx # 16-digit Gmail App Password
# Email Sender Configuration
EMAIL_FROM=your-email@gmail.com
EMAIL_FROM_NAME=Admin Panel Service
# Branding (Used in email templates)
COMPANY_NAME=Admin Panel Service
COMPANY_LOGO=https://ui-avatars.com/api/?name=Admin+Panel+Service&size=150&background=4f46e5&color=fff&bold=true&fontSize=0.4
SUPPORT_EMAIL=support@yourcompany.com
COMPANY_ADDRESS=Your City, Your Country
FIRST_NAME_SETTING=optional
ADVANCED_LOGGING_ENABLED=true
ACTIVITY_TRACKING_ENABLED=true
# Service Token Secrets (use strong random values in production)
CUSTOM_AUTH_SERVICE_TOKEN_SECRET=2f9c8b4d3e6a1c7f5b2d9e0a6f3c4b8d7a1e2f9c5d8b3a6e1c7f4d9b2a6e8c1
SOFTWARE_MANAGEMENT_SERVICE_TOKEN_SECRET=5d1f9a8c7b3e6d2a4f1c8b7e9a6d3c5f2b8e1a7c4d6f9b3a5e2c7d1f8a4b6e9
ADMIN_PANEL_SERVICE_TOKEN_SECRET=8a3c6e1d9b4f7a2c5e8d1f6b3a9c7e2d4b6f1a8c5d9e3b7f2a6c4d1e8b5f9a3
# Service Names (must match across all services)
CUSTOM_AUTH_SERVICE_NAME=Custom_Auth_Service
SOFTWARE_MANAGEMENT_SERVICE_NAME=Software_Management_Service
ADMIN_PANEL_SERVICE_NAME=Admin_Panel_Service
# Allowed services (variable expansion ensures consistency)
ALLOWED_SERVICE_NAMES=${CUSTOM_AUTH_SERVICE_NAME},${SOFTWARE_MANAGEMENT_SERVICE_NAME},${ADMIN_PANEL_SERVICE_NAME}
SERVICE_TOKEN_EXPIRY=3600 # seconds (1 hour)
SOFTWARE_MANAGEMENT_SERVICE_URI=http://localhost:8082
CUSTOM_AUTH_SERVICE_URI=http://localhost:8080
# Redis Key Salt (for hashed session keys)
REDIS_KEY_SALT=7e3f91c4a6b8d2f5c0e9a1b7d4c6f8e2a5b3c1d9f6e4a7b2c8d0e1f3a5b6c7d
# ------------------ Microservice Configuration ---
# Enable microservice mode (true | false)
MAKE_IT_MICROSERVICE=true
DEVICE_TYPE=LAPTOP
DEVICE_UUID=00000000-0000-4000-8000-000000000001
# Service Instance Name
SERVICE_INSTANCE_NAME=admin-panel-service-01
# ------------------ Audit Snapshot Configuration ---
# Options: FULL | CHANGED_ONLY
# FULL - Complete entity snapshot (all fields)
# CHANGED_ONLY - Only fields that changed
AUDIT_MODE=CHANGED_ONLY
ALLOW_ADMIN_BLOCKING=true
ALLOW_CLIENT_BLOCKING=true
FRONTEND_URL=http://localhost:5500