Last active
February 6, 2024 21:33
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
production: | |
adapter: postgresql | |
encoding: unicode | |
sslmode: require | |
url: postgres://user:password@host:port/db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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