From cb2ece93867e0274176325898945aff23c8101ff Mon Sep 17 00:00:00 2001 From: Leopoldadmin Date: Tue, 9 Jun 2026 23:29:24 +0000 Subject: [PATCH] Add backend/app/config.py --- backend/app/config.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 backend/app/config.py diff --git a/backend/app/config.py b/backend/app/config.py new file mode 100644 index 0000000..0dd6bea --- /dev/null +++ b/backend/app/config.py @@ -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()