Repository navigation
Expand file tree
/
Copy pathenv.example
More file actions
108 lines (84 loc) · 3.41 KB
/
Copy pathenv.example
File metadata and controls
108 lines (84 loc) · 3.41 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Environment Configuration
NODE_ENV=development
PORT=3000
LOG_LEVEL=info
# Server Configuration for EC2
API_BASE_URL=http://<EC2 IP>:3000
ALLOWED_ORIGINS=http://<EC2 IP>:3000,http://localhost:3000
# AWS Configuration
AWS_REGION=ap-southeast-5
AWS_ACCESS_KEY_ID=your_aws_access_key_id
AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key
BEDROCK_INFERENCE_PROFILE_ARN=Your_IPA
# S3 Configuration
S3_BUCKET_NAME=event-ai-storage
# Supabase Configuration
SUPABASE_URL=https://your-project-ref.supabase.co
SUPABASE_ANON_KEY=your_supabase_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key
# SageMaker Configuration
SAGEMAKER_ENDPOINT_NAME=event-ai-model-endpoint
USE_SAGEMAKER=true
# Forecast Model Configuration (New AI Model)
FORECAST_MODEL_ENDPOINT=http://56.68.21.46/forecast_inout
# Alternative AI Model API (Legacy, if not using SageMaker)
AI_MODEL_API_URL=https://your-ai-model-api.com/predict
AI_MODEL_API_KEY=your_ai_model_api_key
# Notification Configuration
N8N_WEBHOOK_URL=https://your-n8n-instance.com/webhook/whatsapp-alert
WHATSAPP_API_URL=https://api.whatsapp.com/send
WHATSAPP_API_KEY=your_whatsapp_api_key
NOTIFICATION_RECIPIENTS=+1234567890,+0987654321
# Security Configuration
JWT_SECRET=your_super_secret_jwt_key_here
JWT_EXPIRES_IN=24h
BCRYPT_SALT_ROUNDS=12
# Rate Limiting
RATE_LIMIT=100
# CORS Configuration
ALLOWED_ORIGINS=http://localhost:3000,https://your-frontend-domain.com
# Request Timeout (in milliseconds)
REQUEST_TIMEOUT=30000
# Application Monitoring
ENABLE_METRICS=true
METRICS_PORT=9090
# Google Serp API Configuration (for nearby events search)
SERP_API_KEY=your_serp_api_key_here
SERP_API_ENDPOINT=https://serpapi.com/search
# Enable/disable nearby events search (set to false to conserve API quota - 250 requests/month limit)
SERP_API_ENABLED=true
# Prediction Model Configuration
PREDICTION_MODEL_ENDPOINT=http://56.68.30.73/predict
PREDICTION_TIMEOUT=30000
# S3 Prediction Images Configuration (400+ crowd images for AI analysis)
S3_PREDICTION_IMAGE_BUCKET=predict-model-images
S3_PREDICTION_IMAGE_PREFIX=people_congested_image/test/images/
S3_PREDICTION_IMAGE_REGION=ap-southeast-5
# Cron Job Configuration
ENABLE_PREDICTION_CRON=true
# Run at standard 5-minute intervals: :00, :05, :10, :15, :20, :25, :30, :35, :40, :45, :50, :55
PREDICTION_CRON_PATTERN=0,5,10,15,20,25,30,35,40,45,50,55 * * * *
# Maximum timeframes to keep per gate (288 = 24 hours at 5-min intervals)
MAX_PREDICT_TIMEFRAMES=288
TZ=UTC
# Ongoing Event Notifications Configuration
ENABLE_ONGOING_EVENT_NOTIFICATIONS=true
# Run every 10 minutes: :00, :10, :20, :30, :40, :50
ONGOING_EVENT_NOTIFICATION_PATTERN=0,10,20,30,40,50 * * * *
# Push Notifications (Web Push / VAPID Keys)
# ⚠️ IMPORTANT: Never expose VAPID_PRIVATE_KEY in frontend - backend only!
VAPID_PUBLIC_KEY=BCo-xf8Jfbq7HaY7IPEPsOA07RUtlEvCpgagnZfCu8Ow12RRGDaCeIujwB5rCoKbDMrhnTEpij75q_Ig4kd7fu0
VAPID_PRIVATE_KEY=EYgK1HMm07DEjgXLliJk6PcT8Vg2M6br4mmBYScwzn4
VAPID_SUBJECT=mailto:admin@eventbuddy.com
# Video Streaming & Fall Detection Configuration
FALL_DETECTION_ENABLED=true
# Local development model URL (fallback)
FALL_DETECTION_MODEL_URL=http://localhost:5000
# Production EC2 instance IP (set this for production)
FALL_DETECTION_EC2_IP=
# Example: FALL_DETECTION_EC2_IP=3.123.456.789
MAX_VIDEO_FRAME_SIZE=1MB
# Frontend URL Configuration
# Local development (Vite dev server)
FRONTEND_URL=http://localhost:5173
# Production: FRONTEND_URL=https://eventbuddy.munymunyhom.tech