From 97b6af62fe45634906ec7063edc4fcafde1b0bea Mon Sep 17 00:00:00 2001 From: Takeshi Umeda Date: Mon, 21 Oct 2019 00:41:12 +0900 Subject: Add ssl to elasticsearch config settings (#5527) --- src/db/elasticsearch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/db') diff --git a/src/db/elasticsearch.ts b/src/db/elasticsearch.ts index b34ebe605c..b62e17461a 100644 --- a/src/db/elasticsearch.ts +++ b/src/db/elasticsearch.ts @@ -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; -- cgit v1.2.3-freya