-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
50 lines (44 loc) · 1.9 KB
/
env.example
File metadata and controls
50 lines (44 loc) · 1.9 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
# Logging Configuration
# Valid values: DEBUG, INFO, WARNING, ERROR, CRITICAL (default: INFO)
LOG_LEVEL=INFO
# Pulsar Configuration
PULSAR_SERVICE_URL=pulsar://localhost:6650
PULSAR_TOPIC=persistent://streamhub/v1/frames
PULSAR_SUBSCRIPTION=stream-processor
PULSAR_CONSUMER_NAME=stream-processor-consumer
# Storage Configuration
# Directory structure: {base_path}/client_ids/{client_id}/device_id/{device_id}/frames|hls/
# Storage backend type: 'filesystem' (default) or 'gcs'
STORAGE_TYPE=filesystem
# Filesystem storage base path (used when STORAGE_TYPE=filesystem)
STORAGE_BASE_PATH=/mnt/streamhub/streams
# GCS bucket name (required when STORAGE_TYPE=gcs)
# STORAGE_GCS_BUCKET=your-bucket-name
# GCS project ID (optional, uses Application Default Credentials if not set)
# STORAGE_GCS_PROJECT_ID=your-project-id
# Processing Configuration
PROCESSING_MAX_WORKERS=50
PROCESSING_SEGMENT_DURATION_SECONDS=30
PROCESSING_FRAMES_PER_SEGMENT=6
PROCESSING_RETENTION_HOURS=24
PROCESSING_FRAME_INTERVAL_SECONDS=5
PROCESSING_OUTPUT_FRAMERATE=1
PROCESSING_VIDEO_WIDTH=1920
# Redis Configuration (REQUIRED for offline detection with separate checker service)
# Consumer writes session state to Redis, offline-checker reads it
REDIS_URL=redis://localhost:6379
REDIS_ENABLED=true
# Metrics Configuration
METRICS_PORT=9090
METRICS_ENABLED=true
# Archive/Deferred Transmission Configuration
# Enable deferred transmission archiving (creates VOD archives when devices go offline)
ARCHIVE_ENABLED=true
# Days to retain archived transmissions (default 7)
ARCHIVE_RETENTION_DAYS=7
# Minimum session duration in seconds to archive (default 60)
ARCHIVE_MIN_SESSION_DURATION_SECONDS=60
# Seconds without frames before device is considered offline (default 60)
ARCHIVE_OFFLINE_THRESHOLD_SECONDS=60
# PostgreSQL connection URL for archive metadata (required when ARCHIVE_ENABLED=true)
# ARCHIVE_DATABASE_URL=postgresql://user:password@localhost:5432/streamhub