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

Commit fdf13bc

Browse files
committed
Fix config values
1 parent 6370f72 commit fdf13bc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

config/default.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ module.exports = {
1818
PARTITION: process.env.PARTITION || 0,
1919
KAFKA_OPTIONS: {
2020
kafkaHost: process.env.KAFKA_HOST || 'localhost:9092',
21+
sslOptions: {
22+
cert: process.env.KAFKA_CLIENT_CERT || fs.readFileSync('./kafka_client.cer'),
23+
key: process.env.KAFKA_CLIENT_CERT_KEY || fs.readFileSync('./kafka_client.key')
24+
}
2125
},
2226
MONGODB_URL: process.env.MONGODB_URI || 'mongodb://127.0.0.1:27017/topcoder-x-events',
2327
TC_DEV_ENV: process.env.NODE_ENV === 'production' ? false : true,
@@ -62,8 +66,8 @@ module.exports = {
6266
// NOTE: if subTrack is FIRST_2_FINISH,
6367
// this config has no effect since the ***EndsAt will be set automatically by TC APIs
6468
NEW_CHALLENGE_DURATION_IN_DAYS: process.env.NEW_CHALLENGE_DURATION_IN_DAYS || 5,
65-
GITHUB_ADMIN_TOKEN: '95a5bfd207dafbd44428fa5cc006d51890073d7c',
66-
GITLAB_ADMIN_TOKEN:'gj8QFR8z8FubeHK8sMx1',
69+
GITHUB_ADMIN_TOKEN: process.env.GITHUB_ADMIN_TOKEN || '',
70+
GITLAB_ADMIN_TOKEN:process.env.GITHUB_ADMIN_TOKEN || '',
6771
// node mailer option
6872
NODE_MAILER_OPTIONS: {
6973
host: process.env.SMTP_HOST || process.env.MAILGUN_SMTP_SERVER || 'smtp.gmail.com',

0 commit comments

Comments
 (0)