Add backend/app/config.py

This commit is contained in:
2026-06-09 23:29:24 +00:00
parent 5dcaddca5c
commit cb2ece9386
+23
View File
@@ -0,0 +1,23 @@
"""Application configuration."""
import os
from typing import Optional
class Settings:
"""Application settings."""
PROJECT_NAME: str = "FreeTable"
VERSION: str = "1.0.0"
API_V1_STR: str = "/api/v1"
# Database
DATABASE_URL: str = os.getenv("DATABASE_URL", "sqlite:///./freetable.db")
# Security
SECRET_KEY: str = os.getenv("SECRET_KEY", "changeme-in-production")
ALGORITHM: str = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
# CORS
BACKEND_CORS_ORIGINS: list[str] = ["http://localhost:5173", "http://localhost:3000"]
settings = Settings()