Hi everybody
i have a cluster elasticsearch of 3 nodes and two instance of kibana installed on two differents machines for loadbalancing with nginx reverse proxy , i access to kibana UI to login but when i enter my login and password it returns to login page.
my nginx file conf :
upstream kibana {
server 192.168.10.9:5601;
server 192.168.10.6:5601;
}
server {
listen 80;
location / {
rewrite ^/kibana/(.*) $1 break;
proxy_pass http://kibana;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
any help is welcome 
Hello,
Something like this works for me:
set $proxy_pass_url http://localhost:5601;
#Main location which proxy's Kibana backend server
location / {
proxy_set_header Host $proxy_pass_url;
proxy_set_header X-Real-IP $remote_addr;
proxy_http_version 1.1;
proxy_set_header Connection "Keep-Alive";
proxy_set_header Proxy-Connection "Keep-Alive";
proxy_set_header Authorization "";
proxy_pass $proxy_pass_url/;
proxy_redirect $proxy_pass_url/ /;
}# Reverse proxy of assets and front end app
location ~ (/app|/translations|/node_modules|/built_assets/|/bundles|/es_admin|/plugins|/api|/ui|/elasticsearch|/spaces/enter) {
proxy_pass $proxy_pass_url;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header Authorization "";
proxy_hide_header Authorization;
}
Hi can you share all your file conf please and is there any configuration to do in kibana.yml ?
Thanx.