Elasticsearch-jetty http basic auth example?


(Tim Uckun) #1

Has anybody set up http basic auth with elasticsearch jetty and can share
their config?

Thanks.


(Igor Motov) #2

Here is the simplest configuration that just provides basic auth and with
the same security constraints for all
requests: https://gist.github.com/2282444 Simply drop jetty.xml and
realm.properties into the config directory and add the line from
elasticsearch.yml file to your elasticsearch.yml config.

For a more complex example
with see https://github.com/sonian/elasticsearch-jetty/blob/master/config/jetty.xml

Igor

On Sunday, April 1, 2012 10:39:52 PM UTC-4, Tim Uckun wrote:

Has anybody set up http basic auth with elasticsearch jetty and can share
their config?

Thanks.


(system) #3