Skip to content

Commit

Permalink
fix search routing (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4c6565 authored Nov 28, 2023
1 parent 918df8c commit 26fadd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 26fadd6

Please sign in to comment.