mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
feat(auth): enforce SSL for db connection to prevent MITM & snooping
This commit is contained in:
@@ -8,5 +8,8 @@ const connectionString = process.env.POSTGRES_URL || process.env.DATABASE_URL!
|
||||
// Disable prefetch as it is not supported for "Transaction" pool mode
|
||||
const client = postgres(connectionString, {
|
||||
prepare: false,
|
||||
ssl: {
|
||||
rejectUnauthorized: true,
|
||||
},
|
||||
})
|
||||
export const db = drizzle(client)
|
||||
|
||||
Reference in New Issue
Block a user