Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Increase :connect_timeout to Handle Longer Cold Starts (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodekaizen authored Aug 13, 2024
1 parent 283c969 commit b903cbf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ if config_env() == :prod do
url: database_url,
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
socket_options: maybe_ipv6,
ssl: [cacerts: :public_key.cacerts_get()]
ssl: [cacerts: :public_key.cacerts_get()],
connect_timeout: 30_000

config :zoonk, ZoonkWeb.Endpoint,
url: [host: host, port: 443, scheme: "https"],
Expand All @@ -144,4 +145,4 @@ if config_env() == :prod do
secret_key_base: secret_key_base

config :zoonk, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY")
end
end

0 comments on commit b903cbf

Please sign in to comment.