Commit e8829dcc authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'docs-dcoy-master-patch-85462' into 'master'

Docs: Include code to change Elasticsearch password

See merge request gitlab-org/gitlab!78417
parents b70f399d 559f9154
......@@ -1377,3 +1377,18 @@ Gitlab::CurrentSettings.elasticsearch_url
Gitlab::CurrentSettings.elasticsearch_indexing
```
#### Changing the Elasticsearch password
```ruby
es_url = Gitlab::CurrentSettings.current_application_settings
# Confirm the current ElasticSearch URL
es_url.elasticsearch_url
# Set the ElasticSearch URL
es_url.elasticsearch_url = "http://<username>:<password>@your.es.host:<port>"
# Save the change
es_url.save!
```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment