Backport #448
This commit is contained in:
@ -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'),
|
||||||
|
|||||||
Reference in New Issue
Block a user