GithubHelp home page GithubHelp logo

elasticsearch-war's Introduction

ElasticSearch encapsulate in eXo platform

This encapsulate an ElasticSearch in eXo Platform Server. Only localhost request or username/password request can access.

Configuring

  1. Download elasticsearch-http-basic-1.4.0.jar on https://github.com/Asquera/elasticsearch-http-basic/releases
  2. Create a new folder es/plugins/http-basic on the root of PLF server and copy/paste it the elasticsearch-http-basic-1.4.0.jar
  3. Compile this module and copy/paste the target/elasticsearch-war.war to webapp folder of PLF Server
  4. Start PLF

Testing

After starting eXo Platform you can test as follow:

Authorized

$ curl -v localhost:9200 # works (returns 200) (localhost is configured as whitelisted ip)
$ curl -XPUT 'http://localhost:9200/blog/user/dilbert' -d '{ "name" : "Dilbert Brown" }'
$ curl -v --user root:gtn no_local_host:9200/blog # works (returns 200) (if credentials are set in configuration)

Not Authorized

$ curl -v --user root:notgtn no_local_host:9200/    # health check, returns 200 with  "{\"OK\":{}}" although Unauthorized
$ curl -v --user root:notgtn no_local_host:9200/    # health check, returns 200 with  "{\"OK\":{}}" although Unauthorized
$ curl -v --user root:notgtn no_local_host:9200/blog       # returns 401

elasticsearch-war's People

Contributors

thibaultclem avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.