SSL for PostgreSQL connection nodejs and express to conection on render host service

16 Views Asked by At

The solution ist next: const { Pool } = require('pg'); const db = new Pool({ user:'user', host: 'host', database: 'database', password: 'pass', port: 5432, //solution to render ssl ssl: true });

module.exports = db;

The solution ist next: const { Pool } = require('pg'); const db = new Pool({ user:'user', host: 'host', database: 'database', password: 'pass', port: 5432, //solution to render ssl ssl: true });

module.exports = db; //solution

0

There are 0 best solutions below