Eric Hayes
2014-Feb-15 21:46 UTC
Best way to securely connect to remote Postgres server from Rails.
I'm wonder how most people securely connect to a Postgres database on a server separate from the app server. The ActiveRecord docs for a MySQL connection have explicit SSL options, whereas with Postgres it seems one would pass SSL options as documented for libpq. However a quick Googling returns SO threads with suggestions to use SSH tunnels. Which I guess could be managed with something like AutoSSH. I'd love to hear from anyone with experience with this. Is one method faster than the other, or easier to maintain? —Thanks! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4fa2aae0-71fc-49dc-9af2-1e6dab4e2258%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.