When I try to run: curl -I http://127.0.0.1:5601/
I get:
HTTP/1.1 302 Found
location: /spaces/enter
kbn-name: kibana
If I remove 127.0.0.1 and map port to 0.0.0.0, then I get blank page via proxy.
When I pressed to inspect page it says: Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'nonce-cqMsewGWBDJIXCvU'". Either the 'unsafe-inline' keyword, a hash ('sha256-SHHSeLc0bp6xt4BoVVyUy+3IbVqp3ujLaR+s+kSP5UI='), or a nonce ('nonce-...') is required to enable inline execution.
Failed to load resource: the server responded with a status of 404 (Not Found)
manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.
To this URI redirects also my apache proxy.
Adding server.basePath parameter didn't help as well.
I'm not sure if this is the issue, but the environment settings need to be set using a specific syntax: all uppercase, use underscore instead of period.
So server.name=localhost should be SERVER_NAME=localhost, etc
I'm also not sure I see any problems, from just looking at the info you provided.
It is expected for Kibana to redirect to an app, or spaces selection screen, or login screen, which makes the browser have to leave the requested root URL and go somewhere else. That is why there is a 302 response.
You can add -L to the curl command to see the response from the redirect URL:
Hi, where are you running the curl command from? Try it inside of the Kibana docker container, to see if it works without port forwarding.
Also, from your original post, the port forwarding for Kibana seems to be wrong:
I think this should be:
ports:
- 5601:5601
You have it correctly for the Elasticsearch service, but not for Kibana. Are you able to see the ES root endpoint? In my setup with HTTPS and the ES port forwarded to 19200, it looks like:
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.