Skip to content

Commit 2a46030

Browse files
committed
added sslmode in base.py when connecting to supabase
1 parent b5f3e8c commit 2a46030

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/config/settings/base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@
105105
"PASSWORD": os.getenv("POSTGRES_PASSWORD", "your-supabase-password"),
106106
"HOST": os.getenv("POSTGRES_HOST", "your-project.supabase.co"),
107107
"PORT": os.getenv("POSTGRES_PORT", "6543"),
108-
"OPTIONS": {"options": "-c pool_mode=session"},
108+
"OPTIONS": {
109+
"options": "-c pool_mode=session",
110+
"sslmode": "require",
111+
},
109112
}
110113
}
111114
else:

0 commit comments

Comments
 (0)