This is still less secure btw. If I were you I’d try to add the appropriate certificates to your production system or deployment container. But admittedly I don’t have a ready material for it, it’s a specific pursuit depending on project and deployment target and I keep no records of how I or my colleagues did it.
Maybe this thread will help: How to connect to postgrex with SSL certificate?
…Or this one: Failing to Understand ssl_opts in Elixir Phoenix Ecto's Postgres Adapter
…Or this forum-wide search: Search results for 'postgres ssl' - Elixir Programming Language Forum