Spaces:
Paused
Paused
| from pydantic_settings import BaseSettings | |
| from typing import ClassVar | |
| class Settings(BaseSettings): | |
| API_V1_STR: str = "/api/v1" | |
| PROJECT_NAME: str = "Admin Dashboard" | |
| VERSION: str = "1.0.0" | |
| # Service Authentication | |
| SERVICE_TOKEN: str = "6f9aee88d5b94b0190c317abcbf4e6e7834cc2c7f02e45693e123456789abcde" | |
| POS_API_URL: str = "https://fred808-desk-back2.hf.space" # Default value, should be overridden in environment | |
| # PostgreSQL Database settings | |
| DATABASE_URL: ClassVar[str] = "postgresql+asyncpg://postgres.juycnkjuzylnbruwaqmp:Lovyelias5584.@aws-0-eu-central-1.pooler.supabase.com:5432/postgres" | |
| # JWT Settings | |
| SECRET_KEY: str = "your-secret-key-here" | |
| ALGORITHM: str = "HS256" | |
| ACCESS_TOKEN_EXPIRE_MINUTES: int = 30 | |
| # Redis settings | |
| REDIS_HOST: str = "localhost" | |
| REDIS_PORT: int = 6379 | |
| # Email settings | |
| MAIL_USERNAME: str = "yungdml31@gmail.com" | |
| MAIL_PASSWORD: str = "" | |
| MAIL_FROM: str = "admin@angelo.com" | |
| MAIL_PORT: int = 587 | |
| MAIL_SERVER: str = "smtp.gmail.com" | |
| # Frontend URL | |
| FRONTEND_URL: str = "http://localhost:3000" | |
| class Config: | |
| case_sensitive = True | |
| settings = Settings() | |