Neda/Back/core/config.py
2026-03-06 15:16:41 +03:30

31 lines
585 B
Python
Executable File

from pydantic_settings import BaseSettings
from functools import lru_cache
class Settings(BaseSettings):
APP_NAME: str = "NEDA"
DEBUG: bool = False
SECRET_KEY: str
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
ALGORITHM: str = "HS256"
SECRET_PASS_LENGTH: int = 16
DATABASE_URL: str
REDIS_URL: str
LIVEKIT_API_KEY: str
LIVEKIT_API_SECRET: str
LIVEKIT_HOST: str
class Config:
env_file = ".env"
case_sensitive = True
@lru_cache
def get_settings() -> Settings:
return Settings() # type: ignore
settings = get_settings()