mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 23:57:32 +00:00
Updated for MLab example configuration
This commit is contained in:
parent
63b44b173e
commit
6949720de9
@ -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.
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user