devbug/config/database.config.js

15 lines
396 B
JavaScript
Raw Normal View History

2019-06-21 22:01:34 +00:00
const database_config = {
name: process.env.DATABASE_NAME || 'feather',
host: process.env.DATABASE_HOST || 'localhost',
port: process.env.DATABASE_PORT || '27017',
auth: {
require: process.env.DATABASE_AUTH || false,
username: process.env.DATABASE_USERNAME || '',
password: process.env.DATABASE_PASSWORD || '',
},
}
module.exports = database_config