Update `ES_HOST` to document TLS usage (#1140)

* Update `ES_HOST` to document TLS usage
* Update elasticsearch.md
* Update content/en/admin/config.md
* Apply suggestions from code review

Co-authored-by: Michael Stanclift <mx@vmstan.com>
This commit is contained in:
Elan Hasson 2023-12-05 10:06:17 -05:00 committed by GitHub
parent 92c64fd62d
commit af73402cbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -387,7 +387,7 @@ See the [ElasticSearch setup page for details on each setting](../elasticsearch#
#### `ES_HOST`
Host of the Elasticsearch server. Defaults to `localhost`
Host of the Elasticsearch server. Defaults to `localhost`. If using TLS, prepend the hostname with `https://`. For example: `https://elastic.example.com`.
#### `ES_PORT`
@ -830,3 +830,4 @@ Defaults to `512`.
#### `GITHUB_API_TOKEN`
Used in a rake task for generating AUTHORS.md from GitHub commit history.

View File

@ -71,6 +71,8 @@ ES_PRESET= # single_node_cluster, small_cluster or large_cluster
# ES_PASS=
```
_Note_: If using TLS, prepend the hostname with `https://`. For example: `https://elastic.example.com`.
### Choosing the correct preset
The value for `ES_PRESET` depends on the size of your Elasticsearch and will be used to set the number of shards and replica for your indices to the best value for your setup: