Skip to content

Commit b8d08fe

Browse files
author
Mehdi Necibi
committed
tests with public db
1 parent c2b4370 commit b8d08fe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: config/runtime.exs

+6-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ if config_env() == :prod do
3030
maybe_ipv6 = if System.get_env("ECTO_IPV6") in ~w(true 1), do: [:inet6], else: []
3131

3232
config :threat_shield, ThreatShield.Repo,
33-
url: db_url,
33+
username: System.get_env("POSTGRES_USER"),
34+
password: System.get_env("POSTGRES_PASSWORD"),
35+
hostname: System.get_env("POSTGRES_HOST"),
36+
database: System.get_env("POSTGRES_DB"),
37+
ssl: true,
38+
ssl_opts: [verify: :verify_none],
3439
pool_size: 10
3540

3641
# The secret key base is used to sign/encrypt cookies and other secrets.

0 commit comments

Comments
 (0)