We are working on integrating kibana dashboard into our front-end applications. instead of directly using kibana dashboard URL, we want to route via nginx. Eg. Kibana URL: https://demo.elastic.co/app/dashboards#/view/kubernetes-b945b7b0-bcb1-11ec-b64f-7dd6e8e82013
We want to access this from below URL https://example.com/kibana/<id>
We tried with below nginx configuration but it's not working.
location /kibana/ {
rewrite ^/kibana/(.*) /$1 break;
proxy_pass https://demo.elastic.co/app/dashboards#/view/kubernetes-b945b7b0-bcb1-11ec-b64f-7dd6e8e82013/;
proxy_buffering off;
proxy_connect_timeout 600s;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}