Mbonea commited on
Commit
5d7715a
·
1 Parent(s): 0d2d920

Update database connection settings for Supabase

Browse files
Files changed (1) hide show
  1. db.py +7 -7
db.py CHANGED
@@ -7,18 +7,18 @@ TORTOISE_ORM = {
7
  "default": {
8
  "engine": "tortoise.backends.asyncpg",
9
  "credentials": {
10
- "host": "db.tsuappywukxvohdnlkpj.supabase.co",
11
- "port": "5432",
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
  },
 
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
  },