-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
81 lines (71 loc) · 3.04 KB
/
Copy pathenv.example
File metadata and controls
81 lines (71 loc) · 3.04 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
# =============================================================================
# OTP VERIFICATION SYSTEM - Environment Configuration
# =============================================================================
# IMPORTANT: Rename this file to .env before running!
# Command: copy env.example .env (Windows) or cp env.example .env (Linux/Mac)
# -----------------------------------------------------------------------------
# APPLICATION SETTINGS
# -----------------------------------------------------------------------------
APP_NAME=OTP Verification System
APP_ENV=development
APP_DEBUG=true
APP_SECRET_KEY=dev-secret-key-change-in-production-32chars
APP_HOST=0.0.0.0
APP_PORT=8000
# -----------------------------------------------------------------------------
# DATABASE CONFIGURATION (PostgreSQL)
# -----------------------------------------------------------------------------
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_DB=otp_system
POSTGRES_USER=otp_admin
POSTGRES_PASSWORD=otp_secure_password_123
# -----------------------------------------------------------------------------
# REDIS CONFIGURATION
# -----------------------------------------------------------------------------
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=redis_secure_password_123
# -----------------------------------------------------------------------------
# TWILIO CONFIGURATION
# -----------------------------------------------------------------------------
# Get these from https://console.twilio.com
# Leave blank for testing without actual phone calls
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_PHONE_NUMBER=
TWILIO_WEBHOOK_BASE_URL=http://localhost:8000
# -----------------------------------------------------------------------------
# OTP CONFIGURATION
# -----------------------------------------------------------------------------
OTP_LENGTH=6
OTP_EXPIRY_MINUTES=10
OTP_MAX_ATTEMPTS=3
OTP_RATE_LIMIT_WINDOW_MINUTES=60
OTP_RATE_LIMIT_MAX_REQUESTS=3
# -----------------------------------------------------------------------------
# SECURITY SETTINGS
# -----------------------------------------------------------------------------
CORS_ORIGINS=http://localhost:3000,http://localhost:5173,http://localhost:80
ALLOWED_HOSTS=localhost,127.0.0.1
JWT_ALGORITHM=HS256
JWT_EXPIRY_HOURS=24
# -----------------------------------------------------------------------------
# WEBHOOK SECURITY
# -----------------------------------------------------------------------------
WEBHOOK_IP_WHITELIST=54.84.214.0/24,54.172.60.0/24,34.203.250.0/24
WEBHOOK_SIGNATURE_REQUIRED=false
# -----------------------------------------------------------------------------
# MONITORING & ALERTING
# -----------------------------------------------------------------------------
ALERT_EMAIL=
ALERT_PHONE=
SENTRY_DSN=
LOG_LEVEL=INFO
LOG_FORMAT=json
# -----------------------------------------------------------------------------
# FRONTEND CONFIGURATION
# -----------------------------------------------------------------------------
VITE_API_URL=http://localhost:8000
VITE_WS_URL=ws://localhost:8000
VITE_APP_NAME=OTP Verification System