Add ssl to elasticsearch config settings (#5527)
This commit is contained in:
parent
f180f02dd1
commit
97b6af62fe
3 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,7 @@ const index = {
|
|||
|
||||
// Init ElasticSearch connection
|
||||
const client = config.elasticsearch ? new elasticsearch.Client({
|
||||
node: `http://${config.elasticsearch.host}:${config.elasticsearch.port}`,
|
||||
node: `${config.elasticsearch.ssl ? 'https://' : 'http://'}${config.elasticsearch.host}:${config.elasticsearch.port}`,
|
||||
pingTimeout: 30000
|
||||
}) : null;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue