Skip to content

Commit 2ea5e83

Browse files
committed
edited config to accept env variables
1 parent 16397ab commit 2ea5e83

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/core/config.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from functools import lru_cache
77

88
from pydantic_settings import BaseSettings
9+
from typing import Optional
910

1011

1112
class Settings(BaseSettings):
@@ -50,6 +51,12 @@ class Settings(BaseSettings):
5051
# Building sample limit for performance
5152
BUILDING_SAMPLE_LIMIT: int = 2000
5253

54+
# Database settings
55+
SUNTRACE_USE_POSTGIS: bool = False
56+
SUNTRACE_DATABASE_URI: Optional[str] = None
57+
58+
59+
5360
class Config:
5461
env_file = ".env"
5562
case_sensitive = True

0 commit comments

Comments
 (0)