server base path is : server.basePath: "/kibana"
and here is nginx.conf file
http {
upstream elasticsearch {
server 127.0.0.1:9200;
keepalive 15;
}
server {
listen 80;
location /kibana {
proxy_pass http://elasticsearch;
proxy_http_version 1.1;
proxy_set_header Connection "Keep-Alive";
proxy_set_header Proxy-Connection "Keep-Alive";
}
}
upstream kibana {
server 127.0.0.1:5601;
keepalive 15;
}
server {
listen 8080;
location / {
proxy_pass http://kibana;
proxy_http_version 1.1;
proxy_set_header Connection "Keep-Alive";
proxy_set_header Proxy-Connection "Keep-Alive";
}
}