Spaces:
Paused
Paused
Update app/core/config.py
Browse files- app/core/config.py +40 -39
app/core/config.py
CHANGED
|
@@ -1,39 +1,40 @@
|
|
| 1 |
-
from pydantic_settings import BaseSettings
|
| 2 |
-
from typing import ClassVar
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
class Settings(BaseSettings):
|
| 6 |
-
API_V1_STR: str = "/api/v1"
|
| 7 |
-
PROJECT_NAME: str = "Admin Dashboard"
|
| 8 |
-
VERSION: str = "1.0.0"
|
| 9 |
-
|
| 10 |
-
# Service Authentication
|
| 11 |
-
SERVICE_TOKEN: str = "6f9aee88d5b94b0190c317abcbf4e6e7834cc2c7f02e45693e123456789abcde"
|
| 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 |
-
|
|
|
|
|
|
| 1 |
+
from pydantic_settings import BaseSettings
|
| 2 |
+
from typing import ClassVar
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
class Settings(BaseSettings):
|
| 6 |
+
API_V1_STR: str = "/api/v1"
|
| 7 |
+
PROJECT_NAME: str = "Admin Dashboard"
|
| 8 |
+
VERSION: str = "1.0.0"
|
| 9 |
+
|
| 10 |
+
# Service Authentication
|
| 11 |
+
SERVICE_TOKEN: str = "6f9aee88d5b94b0190c317abcbf4e6e7834cc2c7f02e45693e123456789abcde"
|
| 12 |
+
POS_API_URL: str = "https://fred808-desk-back2.hf.space" # Default value, should be overridden in environment
|
| 13 |
+
|
| 14 |
+
# PostgreSQL Database settings
|
| 15 |
+
DATABASE_URL: ClassVar[str] = "postgresql+asyncpg://postgres.juycnkjuzylnbruwaqmp:Lovyelias5584.@aws-0-eu-central-1.pooler.supabase.com:5432/postgres"
|
| 16 |
+
|
| 17 |
+
# JWT Settings
|
| 18 |
+
SECRET_KEY: str = "your-secret-key-here"
|
| 19 |
+
ALGORITHM: str = "HS256"
|
| 20 |
+
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
|
| 21 |
+
|
| 22 |
+
# Redis settings
|
| 23 |
+
REDIS_HOST: str = "localhost"
|
| 24 |
+
REDIS_PORT: int = 6379
|
| 25 |
+
|
| 26 |
+
# Email settings
|
| 27 |
+
MAIL_USERNAME: str = "yungdml31@gmail.com"
|
| 28 |
+
MAIL_PASSWORD: str = ""
|
| 29 |
+
MAIL_FROM: str = "admin@angelo.com"
|
| 30 |
+
MAIL_PORT: int = 587
|
| 31 |
+
MAIL_SERVER: str = "smtp.gmail.com"
|
| 32 |
+
|
| 33 |
+
# Frontend URL
|
| 34 |
+
FRONTEND_URL: str = "http://localhost:3000"
|
| 35 |
+
|
| 36 |
+
class Config:
|
| 37 |
+
case_sensitive = True
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
settings = Settings()
|