N
N
nano_e_t_42021-07-17 18:19:41
Nginx
nano_e_t_4, 2021-07-17 18:19:41

How to set up a proxy for kibana in nginx?

Hello.
I want to configure access to kibana on the
https://some_domain/kibana domain,

I do it like this:

NGINX

server {
        listen 443 ssl http2;
        listen [::]:443 ssl http2;
        server_name some_domain;

         location /kibana {
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            proxy_set_header Host $host;
            rewrite ^/kibana/(.*) /$1 break;
            proxy_pass http://kibana_ip:5601/;
         }


KIBANA.YML
server.host: "0.0.0.0"
kibana.index: ".kibana"
server.basePath: /kibana
server.rewriteBasePath: true


but still the response is
{"statusCode":404,"error":"Not Found","message":"Not Found"}

looked in Google, but could not set it up ((
if anyone came across, knows tell me pliz

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2021-07-18
@karabanov

s̶e̶r̶v̶e̶r̶.̶b̶a̶s̶e̶P̶a̶t̶h̶: ̶ ̶ / ̶k̶i̶b̶a̶n̶a̶ ̶z̶a̶m̶e̶n̶i̶ ̶n̶a̶ ̶ s̶e̶r̶v̶e̶r̶.̶b̶a̶s̶e̶P̶a̶t̶h̶:
̶ ̶ / ̶ ̶T̶y̶ ̶zh̶e̶ ̶r̶e̶g̶u̶l̶ya̶r̶k̶o̶y̶ ̶o̶t̶r̶e̶z̶a̶e̶sh̶̶ / ̶k̶i̶b̶a̶n̶a̶ ̶p̶e̶r̶e̶d̶ ̶t̶e̶m̶, ̶ ̶k̶a̶k̶ ̶p̶r̶o̶k̶s̶i̶r̶o̶v̶a̶t̶̶.̶.̶.̶
general can do without manage the regular season . For example:

location /kibana/ {
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            proxy_set_header Host $host;
            proxy_pass http://kibana_ip:5601/;
         }

̶B̶ s̶e̶r̶v̶e̶r̶.̶b̶a̶s̶e̶P̶a̶t̶h̶:̶ ̶/ ̶ ̶ with̶o̶o̶t̶v̶e̶t̶s̶t̶v̶e̶n̶n̶o̶.
UPD:
I made a mistake, you need to specify server.basePath: /kibana

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question