Commit 411383eb9b07ab912fc7c77e325041f263056227

Authored by Andrew
1 parent 61c3dcdb

More realistic example [skip ci]

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
@@ -1113,7 +1113,7 @@ rake searchkick:reindex CLASS=Product @@ -1113,7 +1113,7 @@ rake searchkick:reindex CLASS=Product
1113 Create an initializer `config/initializers/elasticsearch.rb` with: 1113 Create an initializer `config/initializers/elasticsearch.rb` with:
1114 1114
1115 ```ruby 1115 ```ruby
1116 -ENV["ELASTICSEARCH_URL"] = "https://username:password@host" 1116 +ENV["ELASTICSEARCH_URL"] = "https://user:password@host"
1117 ``` 1117 ```
1118 1118
1119 Then deploy and reindex: 1119 Then deploy and reindex:
@@ -1133,7 +1133,7 @@ Bonsai, Elastic Cloud, and Amazon Elasticsearch all support encryption at rest a @@ -1133,7 +1133,7 @@ Bonsai, Elastic Cloud, and Amazon Elasticsearch all support encryption at rest a
1133 Create an initializer `config/initializers/elasticsearch.rb` with multiple hosts: 1133 Create an initializer `config/initializers/elasticsearch.rb` with multiple hosts:
1134 1134
1135 ```ruby 1135 ```ruby
1136 -ENV["ELASTICSEARCH_URL"] = "https://host1:9200,https://host2:9200" 1136 +ENV["ELASTICSEARCH_URL"] = "https://user:password@host1,https://user:password@host2"
1137 ``` 1137 ```
1138 1138
1139 See [elasticsearch-transport](https://github.com/elastic/elasticsearch-ruby/blob/master/elasticsearch-transport) for a complete list of options. 1139 See [elasticsearch-transport](https://github.com/elastic/elasticsearch-ruby/blob/master/elasticsearch-transport) for a complete list of options.