Add backend/app/config.py
This commit is contained in:
@@ -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()
|
||||||
Reference in New Issue
Block a user