Fred808 commited on
Commit
24b28d8
·
verified ·
1 Parent(s): d908a8c

Update app/core/config.py

Browse files
Files changed (1) hide show
  1. 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
- # PostgreSQL Database settings
14
- DATABASE_URL: ClassVar[str] = "postgresql+asyncpg://postgres.juycnkjuzylnbruwaqmp:Lovyelias5584.@aws-0-eu-central-1.pooler.supabase.com:5432/postgres"
15
-
16
- # JWT Settings
17
- SECRET_KEY: str = "your-secret-key-here"
18
- ALGORITHM: str = "HS256"
19
- ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
20
-
21
- # Redis settings
22
- REDIS_HOST: str = "localhost"
23
- REDIS_PORT: int = 6379
24
-
25
- # Email settings
26
- MAIL_USERNAME: str = "yungdml31@gmail.com"
27
- MAIL_PASSWORD: str = ""
28
- MAIL_FROM: str = "admin@angelo.com"
29
- MAIL_PORT: int = 587
30
- MAIL_SERVER: str = "smtp.gmail.com"
31
-
32
- # Frontend URL
33
- FRONTEND_URL: str = "http://localhost:3000"
34
-
35
- class Config:
36
- case_sensitive = True
37
-
38
-
39
- settings = Settings()
 
 
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()