34 lines
657 B
Python
34 lines
657 B
Python
"""
|
|
Backend configuration settings for Newzy application.
|
|
"""
|
|
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
"""Application settings."""
|
|
|
|
model_config = SettingsConfigDict(
|
|
env_file=".env",
|
|
env_file_encoding="utf-8",
|
|
case_sensitive=False,
|
|
)
|
|
|
|
# Application
|
|
APP_NAME: str = "Newzy"
|
|
APP_VERSION: str = "0.1.0"
|
|
DEBUG: bool = False
|
|
|
|
# Database
|
|
DATABASE_URL: str = "sqlite:///./data/db/newzy.db"
|
|
DATABASE_DIR: str = "./data/db"
|
|
|
|
# CORS
|
|
CORS_ORIGINS: list[str] = ["*"]
|
|
|
|
class Config:
|
|
case_sensitive = False
|
|
|
|
|
|
settings = Settings()
|