Lightweight Elasticsearch Proxy App in Node.js
- Creates a public proxy endpoint for Elasticsearch without exposing Auth credentials.
- Passes
GET,POSTandOPTIONSrequests/http methods, rejects all others (egPUT,Delete). - See it in action on Heroku
- Used by Sift | FNS Search
If you plan on hosting the proxy on Heroku (or similar) it is recommended you define these config variables in your host dashboard or via console/toolbelt:
ELASTIC_URL- Elasticsearch Cluster URL. Defaults tohttp://localhost:9200.ELASTIC_USER(Optional: Basic Auth User)ELASTIC_PASS(Optional: Basic Auth Password)
$ git clone [email protected]:rveitch/sift-proxy.git$ npm install$ npm start- Visit http://localhost:3000 in your browser and/or send API requests to the endpoint.