Use clickhouse config when connecting to it

pull/76/head
Uku Taht 7 years ago
parent 2ad0c7fafc
commit 91dd199fe2

@ -210,12 +210,10 @@ defmodule Plausible.Release do
Application.ensure_all_started(:db_connection)
Application.ensure_all_started(:hackney)
clickhouse_config = Application.get_env(:plausible, :clickhouse)
Clickhousex.start_link(
scheme: :http,
port: 8123,
name: :clickhouse,
database: "default",
hostname: Keyword.get(Application.get_env(:plausible, :clickhouse), :hostname)
Keyword.merge([scheme: :http, port: 8123, name: :clickhouse], clickhouse_config)
)
end

Loading…
Cancel
Save