devbug/config/database.config.js
2019-06-21 17:01:34 -05:00

15 lines
396 B
JavaScript

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