Skip to content

Commit

Permalink
Require SSL for DB connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Dropheart committed Sep 21, 2024
1 parent 0a9fb41 commit 421db52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hono/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 421db52

Please sign in to comment.