v1.18.x
Baris Usakli 7 years ago
parent dbf815ed47
commit 5ca3b535e7

@ -77,10 +77,14 @@ function setupRoutes() {
function welcome(req, res) {
var dbs = ['redis', 'mongo'];
var databases = dbs.map(function (el) {
var databases = dbs.map(function (databaseName) {
var questions = require('../src/database/' + databaseName).questions.filter(function (question) {
return question && !question.hideOnWebInstall;
});
return {
name: el,
questions: require('../src/database/' + el).questions,
name: databaseName,
questions: questions,
};
});

@ -22,6 +22,7 @@ mongoModule.questions = [
name: 'mongo:uri',
description: 'MongoDB connection URI: (leave blank if you wish to specify host, port, username/password and database individually)\nFormat: mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]',
default: nconf.get('mongo:uri') || '',
hideOnWebInstall: true,
},
{
name: 'mongo:host',

Loading…
Cancel
Save