Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit a496a87

Browse files
author
Chris Wiechmann
committed
ELASTICSEARCH_SSL_VERIFICATIONMODE configured wrong
1 parent 4283b35 commit a496a87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apibuilder4elastic/conf/elasticsearch.default.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ module.exports = {
1515
// The name to identify the client instance in the events.
1616
name: process.env.ELASTICSEARCH_CLIENT_NAME || 'apibuilder4elastic',
1717
// You can use all configuration options documented here:
18-
// https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/7.x/client-configuration.html
18+
// https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/master/client-configuration.html
1919
maxRetries: 5,
2020
requestTimeout: 60000,
2121
ssl: {
22-
ca: ("false" == process.env.ELASTICSEARCH_SSL_VERIFICATIONMODE) ? fs.readFileSync(process.env.ELASTICSEARCH_CA) : "",
22+
ca: ("false" == process.env.ELASTICSEARCH_SSL_VERIFICATIONMODE) ? "" : fs.readFileSync(process.env.ELASTICSEARCH_CA),
2323
rejectUnauthorized: ("false" == process.env.ELASTICSEARCH_SSL_VERIFICATIONMODE) ? false : true
2424
}
2525
},

0 commit comments

Comments
 (0)