Skip to content

Commit

Permalink
Add ssl to db connection
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiRe committed Dec 11, 2021
1 parent c6ff955 commit 2d73f89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/src/db/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ types.setTypeParser(TIMESTAMP_OID, parseFn);
// Use pg with knex
const knex = Knex({
client: "pg",
connection: process.env.DATABASE_URL,
connection: {
connectionString: process.env.DATABASE_URL,
ssl: true
},
debug: process.env.NODE_ENV === "development"
});

Expand Down

0 comments on commit 2d73f89

Please sign in to comment.