-
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.37 KB
/
Copy path.env.example
File metadata and controls
53 lines (42 loc) · 1.37 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
# ============================================
# SentryView (RTSP NVR Dashboard) Configuration
# ============================================
# Deployment use only. Do NOT commit secrets to VCS.
# Populate via your secret manager or local .env on the host.
# ===== DATABASE =====
DATABASE_URL=postgresql://admin:***@db:5432/rtsp_nvr
REDIS_URL=redis://redis:6379
POSTGRES_PASSWORD=secure_password_change_me
# ===== BACKEND =====
SECRET_KEY=your-secret-key-here-change-in-production
JWT_SECRET_KEY=your-jwt-secret-key-here
# ===== BACKEND URL =====
BACKEND_URL=http://backend:5000
# ===== MESH_VPN NETWORKING =====
# Get your auth key from: https://mesh-vpn.com/admin/cloudapi
MESH_VPN_API_KEY=
MESH_VPN_NETWORK_ID=
# ===== RECORDING SETTINGS =====
AUDIO_THRESHOLD_DB=70 # dB threshold for audio-triggered recording
RETENTION_DAYS=7 # Days to keep recordings/events
# ===== SYSTEM SETTINGS =====
FRONTEND_PORT=3000
BACKEND_PORT=5000
FFMPEG_PORT=8889
# ===== SECURITY =====
ALLOWED_ORIGINS=http://localhost:3000
CORS_ENABLED=true
RATE_LIMIT_PER_MINUTE=100
# ===== WEBSOCKET =====
WEBSOCKET_ENABLED=true
WEBSOCKET_HEARTBEAT_INTERVAL=30
# ===== LOGGING =====
LOG_LEVEL=INFO
LOG_FILE=/var/log/rtsp-nvr/app.log
# ===== BACKUP =====
BACKUP_ENABLED=true
BACKUP_SCHEDULE=0 2 * * * # Daily at 2 AM
BACKUP_RETENTION_DAYS=30
# ===== CACHE =====
CACHE_ENABLED=true
CACHE_TTL_SECONDS=300