Skift din forbindelseskode til at bruge ssl. Følger dit linkede eksempel:
var conString = "pg://admin:[email protected]:5432/Employees";
var client = new pg.Client(conString);
client.connect();
bliver:
var client = new pg.Client({
user: "admin",
password: "guest",
database: "Employees",
port: 5432,
host: "localhost",
ssl: true
});
client.connect();
https://github.com/brianc/ node-postgres/wiki/Client#new-clientobject-config--client