var nconf = require('nconf');

var elasticsearch = 'localhost:19200';
if (process.env.BOXEN_ELASTICSEARCH_HOST && process.env.BOXEN_ELASTICSEARCH_PORT) {
    elasticsearch = [process.env.BOXEN_ELASTICSEARCH_HOST, process.env.BOXEN_ELASTICSEARCH_PORT].join(':');
}

nconf
    .argv()
    .env()
    .defaults({
        HTTP_PORT: 7575,
        NODE_ENV: 'dev',
        elasticsearch: elasticsearch
    });

module.exports = nconf;

var nconf = require('nconf');

var elasticsearch = 'localhost:9200';
if (process.env.BOXEN_ELASTICSEARCH_HOST && process.env.BOXEN_ELASTICSEARCH_PORT) {
    elasticsearch = [process.env.BOXEN_ELASTICSEARCH_HOST, process.env.BOXEN_ELASTICSEARCH_PORT].join(':');
}

nconf
    .argv()
    .env()
    .defaults({
        HTTP_PORT: 7575,
        NODE_ENV: 'dev',
        elasticsearch: elasticsearch
    });

module.exports = nconf;

Fix default es host