2020-11-08 18:34:50 +00:00
|
|
|
/*
|
|
|
|
* This file was automatically generated by the Flitter framework.
|
|
|
|
*/
|
2020-11-01 18:50:03 +00:00
|
|
|
const database_config = {
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The name of the database.
|
|
|
|
*/
|
|
|
|
name: env('DATABASE_NAME', 'flitter'),
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The hostname of the database server.
|
|
|
|
* Should be fully-qualified or resolvable.
|
|
|
|
*/
|
|
|
|
host: env('DATABASE_HOST', 'localhost'),
|
|
|
|
|
|
|
|
/*
|
|
|
|
* MongoDB port on the database host.
|
|
|
|
*/
|
2020-11-05 01:18:41 +00:00
|
|
|
// port: env('DATABASE_PORT', 27017),
|
2020-11-01 18:50:03 +00:00
|
|
|
port: env('DATABASE_PORT', 27017),
|
|
|
|
|
2020-11-05 01:18:41 +00:00
|
|
|
protocol: env('DATABASE_PROTOCOL', 'mongodb'),
|
|
|
|
connect_flags: env('DATABASE_FLAGS', '?authSource=admin'),
|
|
|
|
|
2020-11-01 18:50:03 +00:00
|
|
|
auth: {
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Boolean true if the database connection requires auth.
|
|
|
|
*/
|
2020-11-05 01:18:41 +00:00
|
|
|
require: 'true', // env('DATABASE_AUTH', false),
|
2020-11-01 18:50:03 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* MongoDB username and password.
|
|
|
|
*/
|
|
|
|
username: env('DATABASE_USERNAME', ''),
|
|
|
|
password: env('DATABASE_PASSWORD', ''),
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = database_config
|