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;

@@ -59,9 +59,8 @@
 ost:
-1
 9200

Fix default es host