mirror of
https://github.com/plausible/analytics.git
synced 2024-12-27 19:47:26 +03:00
Allow optional IPv6 for clickhouse repo (#2970)
* 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>
This commit is contained in:
parent
13a38aee14
commit
50fa1b059b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user