Skip to content

Commit da01367

Browse files
committed
Add documentation in the save and restore applications.properties which explains how to use an authenticated client to elastic.
Signed-off-by: Mariana González Velarde <[email protected]>
1 parent bc31151 commit da01367

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

services/save-and-restore/src/main/resources/application.properties

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ server.port=8080
99
elasticsearch.network.host=localhost
1010
elasticsearch.http.port=9200
1111

12+
# The value for the `Authorization` header used in requests to the Elasticsearch server.
13+
# This header supports token-based or API key-based authentication.
14+
# See https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/8.12/_other_authentication_methods.html
15+
elasticsearch.authorization.header =
16+
17+
# Username and password for basic authentication with the Elasticsearch server.
18+
# These credentials are only used if `elasticsearch.authorization.header` is not set.
19+
elasticsearch.authorization.username =
20+
elasticsearch.authorization.password =
21+
22+
1223
# Do not change this!
1324
spring.jackson.serialization.write-dates-as-timestamps=false
1425

0 commit comments

Comments
 (0)