Add backend/app/config.py
This commit is contained in:
parent
3cac7c5750
commit
0ad8b220c1
1 changed files with 28 additions and 0 deletions
28
backend/app/config.py
Normal file
28
backend/app/config.py
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
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
|
||||
deltacast_port_count: int = 4
|
||||
|
||||
# SRT streaming settings
|
||||
srt_enabled: bool = True
|
||||
srt_latency: int = 5000 # milliseconds
|
||||
|
||||
# Server settings
|
||||
port: int = 8000
|
||||
log_level: str = "INFO"
|
||||
Loading…
Reference in a new issue