deltacast-sdi-recorder/backend/app/config.py

29 lines
686 B
Python
Raw Permalink Normal View History

2026-04-14 09:21:08 -04:00
from pydantic_settings import BaseSettings
from pydantic import ConfigDict
from typing import Optional
class Settings(BaseSettings):
"""Application configuration from environment variables"""
model_config = ConfigDict(
env_file=".env",
env_file_encoding="utf-8",
case_sensitive=False
)
# FFmpeg and recording settings
ffmpeg_path: str = "/usr/bin/ffmpeg"
recording_dir: str = "/recordings"
# Deltacast hardware settings
2026-04-14 10:00:23 -04:00
deltacast_port_count: int = 8
2026-04-14 09:21:08 -04:00
# SRT streaming settings
srt_enabled: bool = True
srt_latency: int = 5000 # milliseconds
# Server settings
port: int = 8000
log_level: str = "INFO"