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()