Skip to content

Commit

Permalink
Allow optional IPv6 for clickhouse repo (#2970)
Browse files Browse the repository at this point in the history
* Allow optional IPv6 for clickhouse repo

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>

* remove trailing comma

---------

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
Co-authored-by: ruslandoga <rusl@n-do.ga>
  • Loading branch information
rissson and ruslandoga authored Jul 11, 2023
1 parent 13a38ae commit 50fa1b0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,14 @@ config :plausible, :google,
reporting_api_url: "https://analyticsreporting.googleapis.com",
max_buffer_size: get_int_from_path_or_env(config_dir, "GOOGLE_MAX_BUFFER_SIZE", 10_000)

maybe_ch_ipv6 =
get_var_from_path_or_env(config_dir, "ECTO_CH_IPV6", "false")
|> String.to_existing_atom()

ch_transport_opts = [
keepalive: true,
show_econnreset: true
show_econnreset: true,
inet6: maybe_ch_ipv6
]

config :plausible, Plausible.ClickhouseRepo,
Expand Down

0 comments on commit 50fa1b0

Please sign in to comment.