Skip to content

Commit

Permalink
use postgres by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed May 25, 2024
1 parent f76cda6 commit 8b7e0cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
def getenv(var_name: str):
default_values = {
"MODE": "production",
"DATABASE_TYPE": "sqlite",
"DATABASE_TYPE": "postgres",
"ALLOWED_DOMAINS": "*",
"ENCRYPTION_SECRET": "n0ne",
"APP_NAME": "Magical Auth",
Expand All @@ -17,7 +17,9 @@ def getenv(var_name: str):
"LOG_FORMAT": "%(asctime)s | %(levelname)s | %(message)s",
"UVICORN_WORKERS": 1,
"DATABASE_NAME": (
"./test" if os.getenv("DATABASE_TYPE", "sqlite") == "sqlite" else "postgres"
"./test"
if os.getenv("DATABASE_TYPE", "postgres") == "sqlite"
else "postgres"
),
"DATABASE_USER": "postgres",
"DATABASE_PASSWORD": "postgres",
Expand Down

0 comments on commit 8b7e0cf

Please sign in to comment.