Hi,
Installed Nginx in both elasticsearch and in Kibana servers. While trying to access the elasticsearch server through kibana it shows Authorization Error.
Kibana Nginx Config:
http {
    #include       mime.types;
    default_type  application/octet-stream;
    #access_log  logs/access.log  main;
    sendfile        on;
    #tcp_nopush     on;
    #keepalive_timeout  0;
    keepalive_timeout  65;
    #gzip  on;
        upstream kibana {
    server 127.0.0.1:5601;
    keepalive 15;
  }
    server {
    listen                *:443 ;
    ssl on;
    ssl_certificate /home/user/uat.cer;
    ssl_certificate_key /home/itadmin/uatkibana.key;
    auth_basic "Protected Elasticsearch";
    auth_basic_user_file passwords;
      location / {
      proxy_pass https://kibana;
      proxy_redirect off;
    }
  }
}
Kibana Config:
elasticsearch.url: "http://10.0.0.4:8080"
logging.dest: /var/log/kibana.log
elasticsearch.username: admin
elasticsearch.password: "admin"
Elasticsearch Nginx Config:
server {
    listen 8080;
   # auth_basic "Protected Elasticsearch";
   # auth_basic_user_file passwords;
      location / {
          # User access based on the role is specified in the LUA config file.
      access_by_lua_file 'authorize.lua';
      auth_basic "Protected Elasticsearch";
      auth_basic_user_file passwords;
      proxy_pass http://elasticsearch;
      #proxy_redirect off;
    }
Thanks