24 lines
512 B
Python
24 lines
512 B
Python
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
"""Application settings."""
|
|
|
|
model_config = SettingsConfigDict(
|
|
env_file=".env",
|
|
env_file_encoding="utf-8",
|
|
env_ignore_empty=True,
|
|
extra="ignore",
|
|
)
|
|
|
|
HOST: str = "localhost"
|
|
PORT: int = 8000
|
|
RELOAD: bool = True
|
|
LOG_LEVEL: str = "info"
|
|
|
|
DATABASE_URL: str = "sqlite+aiosqlite:///data/soundboard.db"
|
|
DATABASE_ECHO: bool = False
|
|
|
|
|
|
settings = Settings()
|