-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from boostcampwm-2024/dev-back
Dev back merge main
- Loading branch information
Showing
13 changed files
with
114 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 14 additions & 6 deletions
20
backend/name-server/src/database/clickhouse/config/clickhouse.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
import { ClickHouseClientConfigOptions } from '@clickhouse/client'; | ||
|
||
export const clickhouseConfig: ClickHouseClientConfigOptions = { | ||
url: process.env.CLICKHOUSE_URL || 'http://localhost:8123', | ||
username: process.env.CLICKHOUSE_USERNAME || 'default', | ||
password: process.env.CLICKHOUSE_PASSWORD || '', | ||
database: process.env.CLICKHOUSE_DATABASE, | ||
}; | ||
export const clickhouseConfig: ClickHouseClientConfigOptions = | ||
process.env.NODE_ENV === 'development' | ||
? { | ||
url: process.env.DEV_CLICKHOUSE_URL, | ||
username: process.env.DEV_CLICKHOUSE_USERNAME, | ||
password: process.env.DEV_CLICKHOUSE_PASSWORD, | ||
database: process.env.DEV_CLICKHOUSE_DATABASE, | ||
} | ||
: { | ||
url: process.env.CLICKHOUSE_URL || 'http://localhost:8123', | ||
username: process.env.CLICKHOUSE_USERNAME || 'default', | ||
password: process.env.CLICKHOUSE_PASSWORD || '', | ||
database: process.env.CLICKHOUSE_DATABASE, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
backend/name-server/src/server/constant/message-type.constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export const MESSAGE_TYPE = { | ||
DNS: 'DNS', | ||
HEALTH_CHECK: 'HEALTH_CHECK', | ||
} as const; | ||
|
||
export const MIN_DNS_MESSAGE_LENGTH = 12; | ||
|
||
export type MessageType = (typeof MESSAGE_TYPE)[keyof typeof MESSAGE_TYPE]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters