Migrate to motor for DB interaction
This commit is contained in:
@@ -7,6 +7,7 @@ class Settings(BaseSettings):
|
||||
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8")
|
||||
|
||||
db_uri: str = "localhost"
|
||||
db_port: int = 27017
|
||||
db_name: str = "tailfin"
|
||||
|
||||
db_user: str
|
||||
@@ -19,6 +20,9 @@ class Settings(BaseSettings):
|
||||
jwt_secret_key: str = "please-change-me"
|
||||
jwt_refresh_secret_key: str = "change-me-i-beg-of-you"
|
||||
|
||||
tailfin_admin_username: str = "admin"
|
||||
tailfin_admin_password: str = "change-me-now"
|
||||
|
||||
|
||||
@lru_cache
|
||||
def get_settings():
|
||||
|
Reference in New Issue
Block a user