Fred808 commited on
Commit
a3d5a3b
·
verified ·
1 Parent(s): 73bdc1f

Update app/core/config.py

Browse files
Files changed (1) hide show
  1. app/core/config.py +16 -14
app/core/config.py CHANGED
@@ -1,15 +1,17 @@
1
- from pydantic_settings import BaseSettings
2
-
3
- class Settings(BaseSettings):
4
- PROJECT_NAME: str = "POS Backend"
5
- API_V1_STR: str = "/api/v1"
6
- SECRET_KEY: str = "your-secret-key-here"
7
- ALGORITHM: str = "HS256"
8
- ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
9
- REFRESH_TOKEN_EXPIRE_DAYS: int = 7
10
- DATABASE_URL: str = "postgresql+asyncpg://postgres.juycnkjuzylnbruwaqmp:Lovyelias5584.@aws-0-eu-central-1.pooler.supabase.com:5432/postgres"
11
-
12
- class Config:
13
- env_file = ".env"
14
-
 
 
15
  settings = Settings()
 
1
+ from pydantic_settings import BaseSettings
2
+
3
+ class Settings(BaseSettings):
4
+ PROJECT_NAME: str = "POS Backend"
5
+ API_V1_STR: str = "/api/v1"
6
+ SECRET_KEY: str = "your-secret-key-here"
7
+ ALGORITHM: str = "HS256"
8
+ ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
9
+ REFRESH_TOKEN_EXPIRE_DAYS: int = 7
10
+ DATABASE_URL: str = "postgresql+asyncpg://postgres.juycnkjuzylnbruwaqmp:Lovyelias5584.@aws-0-eu-central-1.pooler.supabase.com:5432/postgres"
11
+ SERVICE_TOKEN: str = "6f9aee88d5b94b0190c317abcbf4e6e7834cc2c7f02e45693e123456789abcde" # Should be set in .env file
12
+
13
+
14
+ class Config:
15
+ env_file = ".env"
16
+
17
  settings = Settings()