mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
Added support for using mongo:password and redis:password from config, when no password is entered at setup. This allows for having "default" password and overrides from config. Added using mongo:username and port from config when running setup.
This commit is contained in:
@@ -22,12 +22,14 @@
|
||||
},
|
||||
{
|
||||
name: 'mongo:username',
|
||||
description: 'MongoDB username'
|
||||
description: 'MongoDB username',
|
||||
'default': nconf.get('mongo:username') || ''
|
||||
},
|
||||
{
|
||||
name: 'mongo:password',
|
||||
description: 'Password of your MongoDB database',
|
||||
hidden: true
|
||||
hidden: true,
|
||||
before: function(value) { value = value || nconf.get('mongo:password') || ''; return value; }
|
||||
},
|
||||
{
|
||||
name: "mongo:database",
|
||||
|
||||
Reference in New Issue
Block a user