feat: Add environment configuration files and update settings for production and development
This commit is contained in:
@@ -18,6 +18,13 @@ class Settings(BaseSettings):
|
||||
PORT: int = 8000
|
||||
RELOAD: bool = True
|
||||
|
||||
# Production URLs (for reverse proxy deployment)
|
||||
FRONTEND_URL: str = "http://localhost:8001" # Frontend URL in production
|
||||
BACKEND_URL: str = "http://localhost:8000" # Backend base URL
|
||||
|
||||
# CORS Configuration
|
||||
CORS_ORIGINS: list[str] = ["http://localhost:8001"] # Allowed origins for CORS
|
||||
|
||||
# Database Configuration
|
||||
DATABASE_URL: str = "sqlite+aiosqlite:///data/soundboard.db"
|
||||
DATABASE_ECHO: bool = False
|
||||
@@ -38,6 +45,7 @@ class Settings(BaseSettings):
|
||||
# Cookie Configuration
|
||||
COOKIE_SECURE: bool = True
|
||||
COOKIE_SAMESITE: Literal["strict", "lax", "none"] = "lax"
|
||||
COOKIE_DOMAIN: str | None = "localhost" # Cookie domain (None for production)
|
||||
|
||||
# OAuth2 Configuration
|
||||
GOOGLE_CLIENT_ID: str = ""
|
||||
|
||||
Reference in New Issue
Block a user