Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

fixes for https://github.com/topcoder-platform/topcoder-x-ui/issues/21 #1

Merged
merged 1 commit into from
Jun 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ module.exports = {
LOG_LEVEL: process.env.LOG_LEVEL || 'info',
TOPIC: process.env.TOPIC || 'tc-x-events',
KAFKA_OPTIONS: {
kafkaHost: process.env.KAFKA_HOST || 'localhost:9092',
sslOptions: {
connectionString: process.env.KAFKA_HOST || 'localhost:9092',
ssl: {
cert: process.env.KAFKA_CLIENT_CERT || fs.readFileSync('./kafka_client.cer'), // eslint-disable-line no-sync
key: process.env.KAFKA_CLIENT_CERT_KEY || fs.readFileSync('./kafka_client.key') // eslint-disable-line no-sync
}
Expand Down
8 changes: 4 additions & 4 deletions configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ The following config parameters are supported, they are defined in `config/defau
|KAFKA_CLIENT_CERT | The Kafka SSL certificate to use when connecting| Read from kafka_client.cer file, but this can be set as a string like it is on Heroku |
|KAFKA_CLIENT_CERT_KEY | The Kafka SSL certificate key to use when connecting| Read from kafka_client.key file, but this can be set as a string like it is on Heroku|

KAFKA_OPTIONS should be object as described in https://github.com/SOHU-Co/kafka-node#kafkaclient
KAFKA_OPTIONS should be object as described in https://github.com/oleksiyk/kafka#ssl
For using with SSL, the options should be as
```
{
kafkaHost: '<server>',
sslOptions: {
cert: '<certificate>',
connectionString: '<server>',
ssl: {
cert: '<certificate>',
key: '<key>'
}
}
Expand Down
Loading