Skip to content

Commit a2397dd

Browse files
committed
fix: Allow Vector to use remote ClickHouse
Previous config assumed a docker compose, this updates it to allow remote connections like ClickHouse Cloud.
1 parent 7f25f4f commit a2397dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutoraspects/templates/aspects/apps/vector/partials/common-post.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ auth.password = "{{ ASPECTS_CLICKHOUSE_VECTOR_PASSWORD }}"
9191
# Required: https://github.com/timberio/vector/issues/5797
9292
encoding.timestamp_format = "unix"
9393
inputs = ["tracking"]
94-
endpoint = "{{ CLICKHOUSE_HOST }}:{{ CLICKHOUSE_PORT }}"
94+
endpoint = "{% if CLICKHOUSE_SECURE_CONNECTION %}https{% else %}http{% endif %}://{{ CLICKHOUSE_HOST }}:{{ CLICKHOUSE_PORT }}"
9595
database = "{{ ASPECTS_VECTOR_DATABASE }}"
9696
table = "{{ ASPECTS_VECTOR_RAW_TRACKING_LOGS_TABLE }}"
9797
healthcheck = true
@@ -106,7 +106,7 @@ encoding.timestamp_format = "unix"
106106
# Allows better parsing of date times
107107
date_time_best_effort = true
108108
inputs = ["xapi"]
109-
endpoint = "{{ CLICKHOUSE_HOST }}:{{ CLICKHOUSE_PORT }}"
109+
endpoint = "{% if CLICKHOUSE_SECURE_CONNECTION %}https{% else %}http{% endif %}://{{ CLICKHOUSE_HOST }}:{{ CLICKHOUSE_PORT }}"
110110
database = "{{ ASPECTS_VECTOR_DATABASE }}"
111111
table = "{{ ASPECTS_VECTOR_RAW_XAPI_TABLE }}"
112112
healthcheck = true

0 commit comments

Comments
 (0)