| import os | |
| from pydantic_settings import BaseSettings, SettingsConfigDict | |
| class Settings(BaseSettings): | |
| # Supabase Configuration | |
| supabase_url: str = os.getenv("SUPABASE_URL", "") | |
| supabase_anon_key: str = os.getenv("SUPABASE_ANON_KEY", "") | |
| supabase_service_role_key: str = os.getenv("SUPABASE_SERVICE_ROLE_KEY", "") | |
| # JWT Configuration | |
| jwt_secret: str = os.getenv("JWT_SECRET", "secret-key") | |
| jwt_algorithm: str = "HS256" | |
| access_token_expire_minutes: int = 60 | |
| # CORS | |
| cors_origins: list = ["*"] | |
| model_config = SettingsConfigDict(env_file=".env", extra="ignore") | |
| settings = Settings() | |