-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable SSL #532
Comments
Hey @Sneppers - I use heroku a lot too. To enable ssl append |
Thank for the reply. postgres://user:pass@host:port/database?ssl=require; For both cases I still get the same connection refused error. |
Hmmm...that's strange. Try setting Also, this is how I usually do it: https://github.com/brianc/node-postgres/blob/master/test/integration/client/heroku-ssl-tests.js |
Finally, thank you. I am pretty sure I had tried that before... Anyway, works now. |
@brianc – my guess is that you're seeing people having issues with this because heroku's docs instruct hard-coding |
barf - those docs are extreeeemly out of date! I've let them know before, & I'll contact them again. |
I talked to the heroku team & they updated the docs. @lepinsk thanks for pointing that out. :) |
Glad to be of assistance @brianc; it's the least I could do. :-) |
My host provider requires SSL (Heroku) to connect from remote locations.
Any idea on how to enable SSL in the connection string?
postgres://user:pass@host:port/database;
Been looking for it everywhere but it does not seem to be a very popular topic.
By the way, am using the connection-pooled method:
pg.connect(connString, function(err, client, done) {
/// Should work.
});
Please, let me know.
The text was updated successfully, but these errors were encountered: