---
title: Configuration
id: "en:rtlscloud:embedded:config.adoc"
site: en
component: rtlscloud
module: embedded
lang: en
url: "https://help.rtlscloud.io/3.0/en/rtlscloud/embedded/config.html"
source_repo: "https://github.com/iot-invent/rtlscloud-doc.git@HEAD"
source_path: en/modules/embedded/pages/config.adoc
---

# Configuration

## External database

Install MongoDB & MongoDB Compass

> **IMPORTANT:** Enable Authenticationuse admin
> db.createUser(
>   {
>     user: "admin",
>     pwd: passwordPrompt(), // or cleartext password
>     roles: [
>       { role: "userAdminAnyDatabase", db: "admin" },
>       { role: "readWriteAnyDatabase", db: "admin" }
>     ]
>   }
> )Stop/Shutdown MongoDBdb.adminCommand( { shutdown: 1 } )Enable authentication in configuration file (mongod.cfg)security:
>   authorization: enabledStart MongoDB and connect again with MongoDB Compass and the previous created user

Create new user for rtlscloud app

```javascript
use admin
db.getSiblingDB('rtlscloud').createUser({ user: 'rtlscloud', pwd: passwordPrompt(), roles: [{role: 'readWrite', db: 'rtlscloud'}] })
```

Create or Update rtlscloud application.yaml

```yaml
spring:
  mongodb:
    embedded:
      enabled: false
  data:
    mongodb:
      port: 27017
      database: rtlscloud
      username: "rtlscloud"
      password: // cleartext password
```
