mirror of
https://github.com/netfun2000/hipudding-teslamate.git
synced 2026-02-27 09:44:28 +08:00
Allow to connect to Postgres via IPv6 (#1006)
This commit is contained in:
@@ -80,6 +80,10 @@ config :teslamate, TeslaMate.Repo,
|
||||
pool_size: System.get_env("DATABASE_POOL_SIZE", "10") |> String.to_integer(),
|
||||
timeout: System.get_env("DATABASE_TIMEOUT", "60000") |> String.to_integer()
|
||||
|
||||
if System.get_env("DATABASE_IPV6") == "true" do
|
||||
config :teslamate, TeslaMate.Repo, socket_options: [:inet6]
|
||||
end
|
||||
|
||||
config :teslamate, TeslaMateWeb.Endpoint,
|
||||
http:
|
||||
Util.choose_http_binding_address() ++
|
||||
|
||||
Reference in New Issue
Block a user