Commit 559f9154 authored by David Coy's avatar David Coy Committed by Achilleas Pipinellis

Docs: Include code to change Elasticsearch password

parent f251f699
...@@ -1377,3 +1377,18 @@ Gitlab::CurrentSettings.elasticsearch_url ...@@ -1377,3 +1377,18 @@ Gitlab::CurrentSettings.elasticsearch_url
Gitlab::CurrentSettings.elasticsearch_indexing 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