Files
whisperbox-transcribe/app/shared/settings.py
2023-07-31 18:14:39 +02:00

22 lines
434 B
Python

import sys
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
API_SECRET: str
BROKER_URL: str
DATABASE_URI: str
ENVIRONMENT: str
TASK_SOFT_TIME_LIMIT: int = 3 * 60 * 60
TASK_HARD_TIME_LIMIT: int = 4 * 60 * 60
ENABLE_SHARING: bool = False
if "pytest" in sys.modules:
settings = Settings(_env_file=".env.test") # type: ignore
else:
settings = Settings() # type: ignore