Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
happner-elastic-proxy
Advanced tools
node v7+
npm
run the 3 services
docker-compose up
#install deps
npm install happner-elastic-proxy
#test run
npm test
run the service locally:
git clone https://github.com/happner/happner-elastic-proxy.git && cd happner-elastic-proxy && npm install && node service/start proxy
elasticsearch.url: "http://localhost:55555"
elasticsearch.customHeaders: { "kibana_server_secret" : "username=_ADMIN&password=happn" }
elasticsearch.requestHeadersWhitelist: [ authorization, cookie ]
> git clone https://github.com/happner/happner-elastic-proxy.git && cd happner-elastic-proxy && npm install
> node service/start proxy
# to start the proxy with non-default settings:
> node service/start proxy=proxy.port=55555,proxy.target=http://localhost:9200,proxy.log_output=true,proxy.log_output_errors_only=true
# if log_output=true - requests are logged to the console
# the elasticURL is adjusted to point to the elastic service, elastic requests are proxied to
npm i happner-elastic-proxy --save
//starts the proxy service, we test pushing requests through it to elasticsearch, default listen port 55555 and target http://localhost:9200
var Service = require('happner-elastic-feed');
var proxyConfig = {};
var proxyService = new Service();
var http = require('http');
proxyService
.proxy(proxyConfig)
.then(function () {
http.get({
host: 'localhost',
port: 55555,
path: '/_cat/indices?v'
}, function(res) {
var body = '';
res.on('data', function(chunk) {
body += chunk;
});
res.on('end', function() {
console.log('successfully queried :::', body);
proxyService.stop()
.then(function(){
done();
})
.catch(done)
});
}).on('error', function(e) {
done(e);
});
})
.catch(function(e){
done(e);
})
for detailed proxy usage have a look at the tests.
Happner setup instructions in more detail here.
npm i happner-elastic-proxy --save
var Service = require('happner-elastic-proxy');
var service = new Service();
var proxyConfig = {
};
service
.proxy(proxyConfig)
.then(function () {
//do something else
})
FAQs
happner elastic proxy ----------------------------
The npm package happner-elastic-proxy receives a total of 16 weekly downloads. As such, happner-elastic-proxy popularity was classified as not popular.
We found that happner-elastic-proxy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.