Skip to content

Instantly share code, notes, and snippets.

@mrrooijen
Last active February 6, 2024 21:33
Show Gist options
  • Save mrrooijen/294b24140a18be98e0d5e0e6bca818b6 to your computer and use it in GitHub Desktop.
Save mrrooijen/294b24140a18be98e0d5e0e6bca818b6 to your computer and use it in GitHub Desktop.
SSL configurations for Rails + Postgres in either require or verify-full mode to ensure secure connections. Useful for Amazon RDS, Compose.io, etc.
production:
adapter: postgresql
encoding: unicode
sslmode: require
url: postgres://user:password@host:port/db
production:
adapter: postgresql
encoding: unicode
sslmode: verify-full
sslrootcert: root.crt
url: postgres://user:password@host:port/db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment