Skip to content
Snippets Groups Projects
Commit 97b6af62 authored by Takeshi Umeda's avatar Takeshi Umeda Committed by syuilo
Browse files

Add ssl to elasticsearch config settings (#5527)

parent f180f02d
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,7 @@ export type Source = {
port: number;
pass: string;
index?: string;
ssl?: boolean;
};
autoAdmin?: boolean;
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment