Nginx Mutiple Restriction access to Kibana : Path's syntax

Hi,

I am using Nginx ReverProxy for my Kibana Server , it's done :

 server {
    listen 5606;

    server_name kibana.dma.com;

auth_basic "Restricted Access";
auth_basic_user_file /usr/local/etc/htpasswd.admin;

location /  {
    proxy_pass http://localhost:5601;
    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;
  }
}

"location /" refer to "location /app/kibana"

So, what's the good syntax to prohibit only discover,visualizations,Settings ?

Thanks

Hi Diyal,

Because Kibana is a single-page app, all routing occurs on the client, so you can't prohibit access to routes via Nginx. To prohibit access to various routes, you'll need to create a customized build by forking the Kibana repo. I'm not sure exactly the best way to remove those routes from Kibana. It will take some experimentation.

Thanks,
CJ