Skip to content

Commit

Permalink
console & rotor: unify CH env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Mar 15, 2024
1 parent 8f7adb9 commit f63c6f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/rotor/src/lib/clickhouse-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function clickhouseHost() {
if (process.env.CLICKHOUSE_URL) {
return process.env.CLICKHOUSE_URL;
}
return `${isTruish(process.env.CLICKHOUSE_SSL) ? "https://" : "http://"}:${requireDefined(
return `${isTruish(process.env.CLICKHOUSE_SSL) ? "https://" : "http://"}${requireDefined(
process.env.CLICKHOUSE_HOST,
"env CLICKHOUSE_HOST is not defined"
)}`;
Expand Down
2 changes: 1 addition & 1 deletion webapps/console/lib/server/clickhouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function clickhouseHost() {
if (process.env.CLICKHOUSE_URL) {
return process.env.CLICKHOUSE_URL;
}
return `${isTruish(process.env.CLICKHOUSE_SSL) ? "https://" : "http://"}:${requireDefined(
return `${isTruish(process.env.CLICKHOUSE_SSL) ? "https://" : "http://"}${requireDefined(
process.env.CLICKHOUSE_HOST,
"env CLICKHOUSE_HOST is not defined"
)}`;
Expand Down

0 comments on commit f63c6f4

Please sign in to comment.