Fred808 commited on
Commit
3840f7b
·
verified ·
1 Parent(s): 7df348c

Update app/core/config.py

Browse files
Files changed (1) hide show
  1. app/core/config.py +33 -33
app/core/config.py CHANGED
@@ -1,34 +1,34 @@
1
- from pydantic_settings import BaseSettings
2
- from typing import Optional
3
-
4
- class Settings(BaseSettings):
5
- API_V1_STR: str = "/api/v1"
6
- PROJECT_NAME: str = "Admin Dashboard"
7
- VERSION: str = "1.0.0"
8
-
9
- # PostgreSQL Database settings
10
- DATABASE_URL: str = "postgresql+asyncpg://postgres:Lovyelias5584.@db.mqyrkmsdgugdhxiucukb.supabase.co:5432/postgres"
11
-
12
- # JWT Settings
13
- SECRET_KEY: str = "your-secret-key-here" # Change in production
14
- ALGORITHM: str = "HS256"
15
- ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
16
-
17
- # Redis settings
18
- REDIS_HOST: str = "localhost"
19
- REDIS_PORT: int = 6379
20
-
21
- # Email settings
22
- MAIL_USERNAME: str = "yungdml31@gmail.com"
23
- MAIL_PASSWORD: str = ""
24
- MAIL_FROM: str = "admin@angelo.com"
25
- MAIL_PORT: int = 587
26
- MAIL_SERVER: str = "smtp.gmail.com"
27
-
28
- # Frontend URL for email links
29
- FRONTEND_URL: str = "http://localhost:3000"
30
-
31
- class Config:
32
- case_sensitive = True
33
-
34
  settings = Settings()
 
1
+ from pydantic_settings import BaseSettings
2
+ from typing import Optional
3
+
4
+ class Settings(BaseSettings):
5
+ API_V1_STR: str = "/api/v1"
6
+ PROJECT_NAME: str = "Admin Dashboard"
7
+ VERSION: str = "1.0.0"
8
+
9
+ # PostgreSQL Database settings
10
+ DATABASE_URL: str = "postgresql+asyncpg://postgres:Lovyelias5584.@db.mqyrkmsdgugdhxiucukb.supabase.co:5432/postgres"
11
+
12
+ # JWT Settings
13
+ SECRET_KEY: str = "your-secret-key-here" # Change in production
14
+ ALGORITHM: str = "HS256"
15
+ ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
16
+
17
+ # Redis settings
18
+ REDIS_HOST: str = "localhost"
19
+ REDIS_PORT: int = 6379
20
+
21
+ # Email settings
22
+ MAIL_USERNAME: str = "yungdml31@gmail.com"
23
+ MAIL_PASSWORD: str = ""
24
+ MAIL_FROM: str = "admin@angelo.com"
25
+ MAIL_PORT: int = 587
26
+ MAIL_SERVER: str = "smtp.gmail.com"
27
+
28
+ # Frontend URL for email links
29
+ FRONTEND_URL: str = "http://localhost:3000"
30
+
31
+ class Config:
32
+ case_sensitive = True
33
+
34
  settings = Settings()