config.js 517 Bytes
'use strict';

const path = require('path');

const env = process.env.NODE_ENV || 'development';

const defaults = {
	port: 9000,
	buildDir: path.normalize(__dirname + '/../packages/'),
	dbDir: path.normalize(__dirname + '/../db'),
	influxdb: {
		host: 'influxdblog.web.yohoops.org',
		port: 4444
	},
	redis: {
		connect: {
			host: '127.0.0.1',
			port: '6379',
			//password: ''
		}
	}
};

const specific = {
	development: {},
	test: {},
	production: {},
};

module.exports = Object.assign(defaults, specific[env]);