This commit is contained in:
spalger
2016-10-18 10:00:03 -07:00
parent 4fed4599bd
commit 018f11fc9e

View File

@ -23,6 +23,8 @@ var client = new elasticsearch.Client({
{ {
host: 'es1.internal.org', host: 'es1.internal.org',
auth: 'user:password' auth: 'user:password'
protocol: 'https',
port: 9200
} }
] ]
}); });
@ -37,9 +39,9 @@ Without any additional configuration you can specify `https://` host urls, but t
----- -----
var client = new elasticsearch.Client({ var client = new elasticsearch.Client({
hosts: [ hosts: [
'https://box1.internal.org', 'https://box1.internal.org:9200',
'https://box2.internal.org', 'https://box2.internal.org:9200',
'https://box3.internal.org' 'https://box3.internal.org:9200'
], ],
ssl: { ssl: {
ca: fs.readFileSync('./cacert.pem'), ca: fs.readFileSync('./cacert.pem'),