Skip to content

Commit

Permalink
Allow multiple elasticsearch hosts (#88)
Browse files Browse the repository at this point in the history
Signed-off-by: LE SAULNIER Kevin <[email protected]>
  • Loading branch information
klesaulnier authored Dec 11, 2024
1 parent 96b32d6 commit 2fe2166
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,10 @@ spring:
create-source: metadata

# for microservices with elasticsearch
data:
elasticsearch:
host: elasticsearch
port: 9200
client:
timeout: 60 # Seconds
elasticsearch:
uris:
- http://elasticsearch:9200
socket-timeout: 60s
# disable reactive client autoconfiguration because we don't use it and it is
# not configured so it tries to connect to localhost which fails. This means
# we get an ugly error message at startup, and more importantly that the
Expand Down

0 comments on commit 2fe2166

Please sign in to comment.