From 6949720de92ff5083cd5a4833ce8201b76965477 Mon Sep 17 00:00:00 2001 From: Brayden Girard Date: Fri, 28 Sep 2018 10:00:59 -0400 Subject: [PATCH] Updated for MLab example configuration --- .../3.x.x/en/configurations/configurations.md | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/3.x.x/en/configurations/configurations.md b/docs/3.x.x/en/configurations/configurations.md index 3e4ccb8556..d16d15c261 100644 --- a/docs/3.x.x/en/configurations/configurations.md +++ b/docs/3.x.x/en/configurations/configurations.md @@ -246,6 +246,33 @@ Most of the application's configurations are defined by environment. It means th > Please refer to the [dynamic configurations section](#dynamic-configurations) to use global environment variable to configure the databases. +#### MLab Example + +**Path —** `./config/environments/**/database.json`. +```json +{ + "defaultConnection": "default", + "connections": { + "default": { + "connector": "strapi-hook-mongoose", + "settings": { + "client": "mongo", + "host": "ds123456.mlab.com", + "port": 12345, + "database": "mlab_db_name", + "username": "mlab_user_name", + "password": "mlab_pass" + }, + "options": { + "authenticationDatabase": "mlab_db_name", + "ssl": false + } + } + } +} +``` + +> Please note that you must give your MLab database name as the authenticationDatabase and your password can not contain the "@" symbol.