Skip to content

Commit

Permalink
Allow optional IPv6 for clickhouse repo
Browse files Browse the repository at this point in the history
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
  • Loading branch information
rissson committed May 24, 2023
1 parent dafb601 commit 779d066
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,12 @@ 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 = System.get_env("ECTO_CH_IPV6", false)

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

config :plausible, Plausible.ClickhouseRepo,
Expand Down

0 comments on commit 779d066

Please sign in to comment.