Skip to content

Commit

Permalink
Fixed config.
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-br committed Apr 23, 2024
1 parent 252ca29 commit 35860cc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ config :clear_settle_engine_admin, ClearSettleEngineAdminWeb.Endpoint,
tailwind: {Tailwind, :install_and_run, [:default, ~w(--watch)]}
]

config :clear_settle_engine_admin, ClearSettleEngineAdmin.Repo,
username: System.get_env("DB_USERNAME", "postgres"),
password: System.get_env("DB_PASSWORD", ""),
database: System.get_env("DB_DATABASE", "clear_settle_engine_dev"),
hostname: System.get_env("DB_HOST", "localhost"),
port: System.get_env("DB_PORT", "5432"),
ssl: true,
ssl_opts: [verify: :verify_none],
pool_size: String.to_integer(System.get_env("DB_POOL_SIZE", "10"))

# ## SSL Support
#
# In order to use HTTPS in development, a self-signed
Expand Down
2 changes: 1 addition & 1 deletion config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if config_env() == :prod do

maybe_ipv6 = if System.get_env("ECTO_IPV6") in ~w(true 1), do: [:inet6], else: []

config :clear_settle_engine, ClearSettleEngine.Repo,
config :clear_settle_engine_admin, ClearSettleEngineAdmin.Repo,
username: System.get_env("DB_USERNAME", "postgres"),
password: System.get_env("DB_PASSWORD", ""),
database: System.get_env("DB_DATABASE", "clear_settle_engine_dev"),
Expand Down

0 comments on commit 35860cc

Please sign in to comment.