mehacker369 Posted July 6, 2023 Posted July 6, 2023 Does postgresql provide SSL connection? I tried connecting with SSL as true flag using npm postgresql package, but gives error. const { Pool } = require('pg'); const pool = new Pool({ user: process.env.PG_USER, host: process.env.PG_HOST, database: process.env.PG_DATABASE, password: process.env.PG_PASSWORD, port: process.env.PG_PORT, ssl: true, }); ` Thanks!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now