We are having an issue while accessing Kibana Dashboard through Nginx reverse proxy.
When we add Location block "/" in Nginx.conf for kibana then we are able to access kibana dashboard through "root", in the backend its making all these calls.
Kibana accessible only if we have just "/" in location block but it's not propery way to access kibana dashboard on Nginx proxy as a root.
so when we added location block seprately for each call, "/api, /app, /bundles, /kibana, /plugins, /ui, /elasticsearch....etc", then again it works, this is going to be big mess adding buch of location blocks in nginx.conf
Is there a way we can update Dashboard access instead of / to /kibana into kibana configuration so that we can add only one location block /kibana in Nginx.conf so that in the backend it will make all the calls adding /kibana in prefix?
You can place this in your kibana.yml: server.basePath: /kibana
It will do what you are looking for I think. Then you can configure a /kibana block in your nginx config.
I have added server.basePath: /kibana variable into kibana.yml and restarted kibana service
also added location block in nginx with /kibana, when i hit nginx Proxy URL am not able to access dashboard and i see below log into nginx error.log file.
Below log is generating only when i hit directly nginx proxy URL without /kibana, if i add /kibana along with URL it's not logging anything in Nginx, attached screenshot of inspect section.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.