config.js 647 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: 'web.redis.yohoops.org',
			port: '6379',
			//password: ''
		}
	},
	mysql: {
		host: '192.168.102.219',
		user: 'yh_test',
		password: 'yh_test',
		port: '3306',
		database: 'seo',
	}
};

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

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