Skip to content

Commit

Permalink
core corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbeletsky committed Jul 14, 2014
1 parent 6134a17 commit 131badd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions bin/elaster
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
var elaster = require('../source/elaster');
var config = require('../config');

//process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';

elaster.run(config.collections);
9 changes: 6 additions & 3 deletions config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ module.exports = {

elastic: {
host: {
host: 'https://search.likeastore.com',
port: 80,
protocol: 'https',
host: 'search.likeastore.com',
port: 443,
query: {
access_token: '63882eb552185b755a954c9c3c9deba282b20588'
}
},

requestTimeout: 5000
requestTimeout: 5000,

rejectUnauthorized: false
},

collections: [ {
Expand Down
2 changes: 1 addition & 1 deletion source/elastic/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var elasticsearch = require('elasticsearch');

module.exports = function (config) {
var client = elasticsearch.Client(config.elasticsearch);
var client = elasticsearch.Client(config.elastic);

return client;
};

0 comments on commit 131badd

Please sign in to comment.