File size: 385 Bytes
b1fb35d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from pydantic_settings import BaseSettings
from pydantic import Field


class Settings(BaseSettings):
    """
    Config values for the service. Values are set automatically if a .env file is found
    in the directory root.
    """

    SERVICE_PORT: int | None = Field(default=7860)
    TEMP_VIDEO_PATH: str = Field(default="/tmp/video.webm")


settings = Settings()  # type: ignore