From 421db523f576c7d3d612cef8a6f765f681a93ec0 Mon Sep 17 00:00:00 2001 From: Dropheart Date: Sat, 21 Sep 2024 13:17:23 +0300 Subject: [PATCH] Require SSL for DB connection --- hono/db.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hono/db.ts b/hono/db.ts index a7cffad..d908bc0 100644 --- a/hono/db.ts +++ b/hono/db.ts @@ -6,7 +6,8 @@ export const pool = new Pool({ host: process.env.PGHOST, database: process.env.PGDB, password: process.env.PGPASSWORD, - port: +(process.env.PGPORT || 5432) + port: +(process.env.PGPORT || 5432), + ssl: true }); export const db = drizzle(pool);