-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
80 lines (65 loc) · 2.88 KB
/
.env.example
File metadata and controls
80 lines (65 loc) · 2.88 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
# ------------------ 🔴 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
# ------------------ 🔐 Authentication ------------------
AUTH_MODE=both # options: email | phone | both | either
# ------------------ 🍃 MongoDB -------------------
DB_NAME=admin_panel_service_db
DB_URL=mongodb://localhost/admin_panel_service_db
# ------------------ 🔌 Server --------------------
PORT_NUMBER=8080
# ------------------ 🏗 Infrastructure --------------------
IP_ADDRESS_CODE=1
USER_REGISTRATION_CAPACITY=100000
ADMIN_DATA_CAPACITY=100000
# ------------------ 🧼 Activity Tracker Cleanup Config ---
ACTIVITY_TRACKER_CLEANUP_CRON=0 5 * * 0
ACTIVITY_TRACKER_CLEANUP_TIMEZONE=Asia/Kolkata
ACTIVITY_TRACKER_RETENTION_DAYS=90
ACTIVITY_TRACKING_ENABLED=true # Enable/disable activity tracking globally
# ------------------ 🧹 Admin Cleanup Config --------
ADMIN_CLEANUP_CRON=0 3 * * 0
ADMIN_CLEANUP_TIMEZONE=Asia/Kolkata
ADMIN_RETENTION_DAYS=60
# ------------------ 🌐 Environment ---------------
NODE_ENV=development
# ------------------ 📧 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
# Application URLs
ADMIN_PANEL_LINK=http://localhost:8080/admin
FRONTEND_URL=http://localhost:8080
# 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
# ------------------ � SMS Configuration ---
SMS_MODE=mock # "mock" | "termux-ssh" | "real"
SMS_ENABLED=true # Enable/disable SMS notifications
TEST_PHONE_NUMBER=+919876543210 # Your phone number for testing
# Termux SSH Configuration (for laptop → mobile SMS bridge)
# Setup guide: See TERMUX_SETUP.md
TERMUX_IP=192.168.1.100 # Mobile IP address (from Termux: ifconfig wlan0)
TERMUX_PORT=8022 # Default Termux SSH port
TERMUX_USER=u0_a123 # Termux username (from: whoami)
# ------------------ �📸 Audit Snapshot Configuration ---
# Options: FULL | CHANGED_ONLY
# FULL - Complete entity snapshot (all fields)
# CHANGED_ONLY - Only fields that changed
AUDIT_MODE=CHANGED_ONLY