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
You can use any parameter that is supported by the Elasticsearch-PHP official library, using the Inline Authentication example from the HTTP Authentication guide, you should be able to do:
I'm trying to connect to Elasticsearch behind Nginx.
I can do it this way using the official Elasticsearch-php:
$params['hosts'] = array (
'http://example.com:8080',
);
$params['connectionParams']['auth'] = array(
'user',
'pass',
'Basic'
);
Is it possible to use ['connectionParams']['auth'] with ElasticsearchServiceProvider?
Unfortunately, this does not work for me (401 error):
http://user:pass@example.com:8080
The text was updated successfully, but these errors were encountered: