Updated for MLab example configuration

This commit is contained in:
Brayden Girard 2018-09-28 10:00:59 -04:00 committed by GitHub
parent 63b44b173e
commit 6949720de9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.