Closed seamustuohy closed 7 years ago
Currently the postgresql instance we are using does not require SSL to connect to the DB. This is likely because there are issues with a knexfile parsing SSL requirements from a connection passed as a string. There are a couple of ways we can possibly address this.
knexfile.js
connection: { host: "host", port: "port", user: "user", password: "password", database: "database", ssl: true }
db/index.js
var pg = require('pg'); pg.defaults.ssl = true; const db = require('knex')(config);
Addressed in https://github.com/ASL-19/civicdr-backend/pull/36
Currently the postgresql instance we are using does not require SSL to connect to the DB. This is likely because there are issues with a knexfile parsing SSL requirements from a connection passed as a string. There are a couple of ways we can possibly address this.
knexfile.js
db/index.js