From 26fadd6beea049a0f8bffcca2cf8311cef9c82fe Mon Sep 17 00:00:00 2001 From: Lee Spottiswood Date: Tue, 28 Nov 2023 13:30:54 +0000 Subject: [PATCH] fix search routing (#1058) --- nginx/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 3ecded277..7879bd763 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -33,11 +33,11 @@ http { absolute_redirect off; - location /docs/search/ { + location /docs/search/_search { if ($request_method != GET) { return 405; } - proxy_pass http://elasticsearch:9200/; + proxy_pass http://elasticsearch:9200/_search; } rewrite ^(?!\/docs)\/(.*)$ /docs/$1 permanent;