Update database connection settings for Supabase
Browse files
db.py
CHANGED
@@ -7,18 +7,18 @@ TORTOISE_ORM = {
|
|
7 |
"default": {
|
8 |
"engine": "tortoise.backends.asyncpg",
|
9 |
"credentials": {
|
10 |
-
"host": "
|
11 |
-
"port": "
|
12 |
"user": os.getenv("DB_USER"),
|
13 |
"password": os.getenv("DB_PASSWORD"),
|
14 |
"database": "postgres",
|
15 |
# "ssl": ssl_context, # Uncomment this if SSL is required import ssl
|
16 |
# ...existing code...
|
17 |
-
"credentials": {
|
18 |
-
|
19 |
-
|
20 |
-
},
|
21 |
-
# ...existing code...
|
22 |
},
|
23 |
}
|
24 |
},
|
|
|
7 |
"default": {
|
8 |
"engine": "tortoise.backends.asyncpg",
|
9 |
"credentials": {
|
10 |
+
"host": "aws-0-us-east-2.pooler.supabase.com",
|
11 |
+
"port": "6543",
|
12 |
"user": os.getenv("DB_USER"),
|
13 |
"password": os.getenv("DB_PASSWORD"),
|
14 |
"database": "postgres",
|
15 |
# "ssl": ssl_context, # Uncomment this if SSL is required import ssl
|
16 |
# ...existing code...
|
17 |
+
# "credentials": {
|
18 |
+
# # ...existing code...
|
19 |
+
# "ssl": ssl.create_default_context(), # Add this if Supabase requires SSL
|
20 |
+
# },
|
21 |
+
# # ...existing code...
|
22 |
},
|
23 |
}
|
24 |
},
|