Spaces:
Sleeping
Sleeping
| from pydantic_settings import BaseSettings | |
| from typing import Optional | |
| class Settings(BaseSettings): | |
| # Database | |
| DATABASE_URL: str = "postgresql://neondb_owner:npg_LsojKQF8bGn2@ep-mute-pine-a4g0wfsu-pooler.us-east-1.aws.neon.tech/neondb?sslmode=require&channel_binding=require" | |
| # Auth | |
| BETTER_AUTH_SECRET: str = "your-secret-key-change-in-production" | |
| JWT_SECRET_KEY: str = "your-jwt-secret-change-in-production" | |
| JWT_ALGORITHM: str = "HS256" | |
| ACCESS_TOKEN_EXPIRE_DAYS: int = 7 | |
| JWT_COOKIE_SECURE: bool = True # Set to True in production | |
| JWT_COOKIE_SAMESITE: str = "none" # "lax" | "strict" | "none" (use "none" for cross-site cookies in production) | |
| # CORS | |
| FRONTEND_URL: str = "https://ai-powered-full-stack-task-manageme.vercel.app" | |
| # AI API Keys | |
| GEMINI_API_KEY: Optional[str] = "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" | |
| OPENAI_API_KEY: Optional[str] = "AIzaSyDcrSw3MIP0f4uJAf8Ol6M2BB4KUpkBRqI" | |
| class Config: | |
| env_file = ".env" | |
| settings = Settings() |