Skip to content

Commit

Permalink
Use the same SSL options for epgsql and Ecto connections
Browse files Browse the repository at this point in the history
  • Loading branch information
alco committed Jun 21, 2024
1 parent 900a571 commit 59d89fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/electric/lib/electric/postgres/repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defmodule Electric.Postgres.Repo do
username: conn_opts.username,
password: conn_opts.password,
database: conn_opts.database,
ssl: conn_opts.ssl == :required,
ssl: conn_opts[:ssl_opts] || false,
# Pass TCP options to the Postgrex adapter. This is used to let the adapter know to
# connect to the DB using IPv6, for example.
socket_options: Map.get(conn_opts, :tcp_opts, []),
Expand Down

0 comments on commit 59d89fb

Please sign in to comment.