You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to setup elasticsearch which is behind a nginx proxy with HTTP authentication. It works great if I disable auth on nginx, and removes the auth-part from the link, but as soon as it is active, the elasticsearch request fails. The server responds with 401 Unauthorized and I see the same thing in the nginx error log.
As you can see in the image, the request header Authorization: Basic is not being set at all. I guess this is the reason why I receive the 401 response.
I did a console.log(config) in vendor/elasticjs/elastic-angular-client.js, and it seems like the header is there correctly:
Hmm, strange. Our problem actually solved itself yesterday. I moved my grafana-installation over to the same webhost (graphite.domain.com/grafana) and it started to work. The header is now added in every request both towards graphite and elasticsearch.
Hi!
I'm trying to setup elasticsearch which is behind a nginx proxy with HTTP authentication. It works great if I disable auth on nginx, and removes the auth-part from the link, but as soon as it is active, the elasticsearch request fails. The server responds with 401 Unauthorized and I see the same thing in the nginx error log.
As you can see in the image, the request header Authorization: Basic is not being set at all. I guess this is the reason why I receive the 401 response.
I did a console.log(config) in vendor/elasticjs/elastic-angular-client.js, and it seems like the header is there correctly:
config.js:
elasticsearch: "https://user:pass@graphite.domain.com/elasticsearch",
Any ideas?
/Daniel
The text was updated successfully, but these errors were encountered: