From 018f11fc9e067c86a5899a011c30f129258044a6 Mon Sep 17 00:00:00 2001 From: spalger Date: Tue, 18 Oct 2016 10:00:03 -0700 Subject: [PATCH] Backport #448 --- docs/ssl_authentication.asciidoc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/ssl_authentication.asciidoc b/docs/ssl_authentication.asciidoc index ac448e40c..24231a059 100644 --- a/docs/ssl_authentication.asciidoc +++ b/docs/ssl_authentication.asciidoc @@ -23,6 +23,8 @@ var client = new elasticsearch.Client({ { host: 'es1.internal.org', 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({ hosts: [ - 'https://box1.internal.org', - 'https://box2.internal.org', - 'https://box3.internal.org' + 'https://box1.internal.org:9200', + 'https://box2.internal.org:9200', + 'https://box3.internal.org:9200' ], ssl: { ca: fs.readFileSync('./cacert.pem'),