From 15bfcdf4e927eb4761569f88743064853632a6f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Florido=20Cifuentes?= Date: Wed, 26 Jul 2023 08:40:49 +0200 Subject: [PATCH] Include mongo configuration in Installation.mdx --- docs/getting-started/installation.mdx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/getting-started/installation.mdx b/docs/getting-started/installation.mdx index 38894f4..3cadbdd 100644 --- a/docs/getting-started/installation.mdx +++ b/docs/getting-started/installation.mdx @@ -195,6 +195,7 @@ my-leemons ## 4. Database connection configuration +Currently, Leemons needs a SQL and a Mongo connection at the same time. You can set the configuration of the database connection by modifying the file: ```js title="my-leemons/examples/demo/config/database.js" @@ -216,6 +217,22 @@ module.exports = { }, }, }, + mongo: { + connector: 'mongoose', + settings: { + database: 'leemons', + authDatabase: 'admin', + username: 'leemons', + password: 'leemons', + port: 27017, + host: 'localhost', + srv: false, + pool: { + min: 5, + max: 1000 + } + } + } defaultConnection: 'mysql', }; ```