Skip to content

Commit

Permalink
add ssl and pool_size back as env var configs
Browse files Browse the repository at this point in the history
the database `url` will take precedence
  • Loading branch information
joshk committed Dec 27, 2023
1 parent 08f197f commit 541317a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,17 @@ if config_env() == :prod do

config :nerves_hub, NervesHub.Repo,
url: System.fetch_env!("DATABASE_URL"),
ssl: System.get_env("DATABASE_SSL", "true") == "true",
ssl_opts: database_ssl_opts,
pool_size: String.to_integer(System.get_env("DATABASE_POOL_SIZE", "20")),
socket_options: databse_socket_options,
queue_target: 5000

config :nerves_hub, NervesHub.ObanRepo,
url: System.fetch_env!("DATABASE_URL"),
ssl: System.get_env("DATABASE_SSL", "true") == "true",
ssl_opts: database_ssl_opts,
pool_size: String.to_integer(System.get_env("DATABASE_POOL_SIZE", "20")),
socket_options: databse_socket_options,
queue_target: 5000

Expand Down

0 comments on commit 541317a

Please sign in to comment.