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

Commit bdf3e99

Browse files
authored
Merge pull request #3 from veshu/develop
fixes for topcoder-archive/topcoder-platform-topcoder-x-ui#21
2 parents a2c55c7 + 5c9cad9 commit bdf3e99

File tree

6 files changed

+124
-225
lines changed

6 files changed

+124
-225
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ The following config parameters are supported, they are defined in `config/defau
4545
|FIX_ACCEPTED_ISSUE_LABEL|the label name for fix accepted, should be one of the label configured in topcoder x ui|'Fix Accepted'|
4646
|TC_OR_DETAIL_LINK|the link to online review detail of challenge| see `default.js`, OR link for dev environment|
4747

48-
KAFKA_OPTIONS should be object as described in https://github.com/SOHU-Co/kafka-node#kafkaclient
48+
KAFKA_OPTIONS should be object as described in https://github.com/oleksiyk/kafka#ssl
4949
For using with SSL, the options should be as
5050
```
5151
{
52-
kafkaHost: '<server>',
53-
sslOptions: {
52+
connectionString: '<server>',
53+
ssl: {
5454
cert: '<certificate>',
5555
key: '<key>'
5656
}

config/default.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ module.exports = {
1717
PARTITION: process.env.PARTITION || 0,
1818
TOPIC: process.env.TOPIC || 'tc-x-events',
1919
KAFKA_OPTIONS: {
20-
kafkaHost: process.env.KAFKA_HOST || 'localhost:9092',
21-
sslOptions: {
20+
connectionString: process.env.KAFKA_HOST || 'localhost:9092',
21+
ssl: {
2222
cert: process.env.KAFKA_CLIENT_CERT || fs.readFileSync('./kafka_client.cer'), // eslint-disable-line no-sync
2323
key: process.env.KAFKA_CLIENT_CERT_KEY || fs.readFileSync('./kafka_client.key'), // eslint-disable-line no-sync
2424
}

configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The following config parameters are supported, they are defined in `config/defau
3030
|RETRY_INTERVAL| the interval at which the event should be retried to process in milliseconds | 120000|
3131
|READY_FOR_REVIEW_ISSUE_LABEL| the label name for ready for review, should be one of the label configured in topcoder x ui|'Ready for review'|
3232

33-
KAFKA_OPTIONS should be object as described in https://github.com/SOHU-Co/kafka-node#kafkaclient
33+
KAFKA_OPTIONS should be object as described in https://github.com/oleksiyk/kafka#ssl
3434
For using with SSL, the options should be as
3535
```
3636
{

0 commit comments

Comments
 (0)