# ESPILON C2 Configuration
# Copy this file to .env and adjust values

# ===================
# C2 Server
# ===================
C2_HOST=0.0.0.0
C2_PORT=2626

# ===================
# Camera Server
# ===================
# UDP receiver for camera frames
UDP_HOST=0.0.0.0
UDP_PORT=5000
UDP_BUFFER_SIZE=65535

# Web server for viewing streams
WEB_HOST=0.0.0.0
WEB_PORT=8000

# ===================
# Security
# ===================
# Token for authenticating camera frames (must match ESP firmware)
CAMERA_SECRET_TOKEN=Sup3rS3cretT0k3n

# Flask session secret (change in production!)
FLASK_SECRET_KEY=change_this_for_prod

# Web interface credentials
WEB_USERNAME=admin
WEB_PASSWORD=admin

# ===================
# Storage
# ===================
# Directory for camera frame storage (relative to c2 root)
IMAGE_DIR=static/streams

# ===================
# Video Recording
# ===================
VIDEO_ENABLED=true
VIDEO_PATH=static/streams/record.avi
VIDEO_FPS=10
VIDEO_CODEC=MJPG
