File size: 1,234 Bytes
8dafdf7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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()