Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

add transport_opts to data migration (#3179)

ruslandoga1c17e89b6566
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1fb45aede6..24bbd5a06a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
### Fixed
- Fixed weekly/monthly e-mail report [rendering issues](https://github.com/plausible/analytics/issues/284)
+- Fixed [IPv6 problems](https://github.com/plausible/analytics/issues/3173) in data migration plausible/analytics#3179
- Fixed [long URLs display](https://github.com/plausible/analytics/issues/3158) in Outbound Link breakdown view
- Fixed [Sentry reports](https://github.com/plausible/analytics/discussions/3166) for ingestion requests plausible/analytics#3182
diff --git a/lib/plausible/data_migration/repo.ex b/lib/plausible/data_migration/repo.ex
index 3ceac17b21..4215d45b8a 100644
--- a/lib/plausible/data_migration/repo.ex
+++ b/lib/plausible/data_migration/repo.ex
@@ -1,6 +1,6 @@
defmodule Plausible.DataMigration.Repo do
@moduledoc """
- Ecto.Repo for Clickhouse data migrations, to be started manually,
+ Ecto.Repo for Clickhouse data migrations, to be started manually,
outside of the main application supervision tree.
"""
use Ecto.Repo,
@@ -8,6 +8,8 @@ defmodule Plausible.DataMigration.Repo do
adapter: Ecto.Adapters.ClickHouse
def start(url, max_threads) when is_binary(url) and is_integer(max_threads) do
+ default_config = Plausible.IngestRepo.config()
+
start_link(
url: url,
queue_target: 500,
@@ -16,7 +18,8 @@ defmodule Plausible.DataMigration.Repo do
settings: [
max_insert_threads: max_threads,
send_progress_in_http_headers: 1
- ]
+ ],
+ transport_opts: Keyword.fetch!(default_config, :transport_opts)
)
end
end