Good morning,
I think I'm really to get it but I'm not able to get the key point. May be (I hope so) you can quickly help me.
Great, I set up the wazuh-api and so far everything was working smoothly on localhost:5601.

After, I set up NGINX to protect and hide Kibana behind him, I used this settings:
host~$ sudo cat /etc/nginx/sites-available/default | grep -Ev '^.*#|^$'
upstream kibana {
server localhost:5601 fail_timeout=0;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
location /kibana/ {
satisfy any;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
and I changed kibana-5.3.1-linux-x86_64/config/kibana.yml so:
[...TRUNCATED OUTPUT...]
server.host: 0.0.0.0
[...TRUNCATED OUTPUT...]
server.basePath: "/kibana"
[...TRUNCATED OUTPUT...]
Well, Kibana is still working on localhost/kibana but wazuh-app is getting me these errors:


Could you help me to figure out how to debug and fix this kind of error?
I'm not sure if this is important or not but when I change server.basePath and I restart Kibana I have to wait about 7 minutes to get it working back, I can see this log:
log [09:17:59.941] [info][optimize] Optimization of bundles for wazuh, kibana, timelion and status_page complete in 400.84 seconds
As far as I'm concerned, this would be a Kibana regular behavior when you change its server.basePath. In fact, if I undo this change I get your wazuh-app working back.
Thanks a lot and kind regards