-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Closed
Description
As of Spring Boot 2.4.2, with spring-data if the ES server is behind a reverse proxy with a prefix, there's no way to use Spring Boot's autoconfiguration for spring.elasticsearch.rest or spring.data.elasticsearch.client.reactive properties. One has to use the AbstractElasticsearchConfiguration in order to use the ClientConfiguration.builder().withPathPrefix(prefix)
. The horror.
Ideally, we could:
- directly specify the path-prefix in the spring.elasticsearch.rest.uris property (useful in case there are multiple urls, each with its own path prefix). I don't know how that would work with
spring.data.elasticsearch.client.reactive.endpoints
, as it only uses ahost:port
format. - specify the
path-prefix
in aspring.elasticsearch.rest.path-prefix
orspring.data.elasticsearch.client.reactive.path-prefix
property. In that case, it would behave like thewithPathPrefix(String)
method, applying the prefix to all the uris/endpoints in the list
Metadata
Metadata
Assignees
Labels
type: enhancementA general enhancementA general enhancement