---
title: Configuration files
project: IoT Platform
version: 1.0
section: reference
language: en
license: Total.js Enterprise
url: https://totaljs.es/docs/iot/1-0/reference/configuration/
updated: 2026-11-20T06:56:29.450Z
---

# Configuration files

> The keys of the config files of Admin and Stream, and the start options in index.js.

Each app has a `config` file in its folder. Every line is a key, a colon and a value. Change a value and restart the app.

## Admin

| Key | What it does | Example |
|---|---|---|
| `name` | The name of the app until you set **App name** in [Settings](../../guides/settings/). | `IoT Platform` |
| `database` | The connection to the PostgreSQL database. | `postgresql://user:password@127.0.0.1:5432/iot` |
| `url` | The public address of Admin. | `https://iot.example.com` |

Keep the other keys of the shipped file as they are.

## Stream

| Key | What it does | Example |
|---|---|---|
| `name` | The name of the stream. | `IoT Stream` |
| `database` | The connection to the same PostgreSQL database as Admin. | `postgresql://user:password@127.0.0.1:5432/iot` |
| `url` | The public address of the stream, where devices send their data. | `https://stream.example.com` |

## Start options in index.js

Both apps start from `index.js`. The lines that begin with `//` are switched off. Remove the `//` to use one:

```js
options.ip = '127.0.0.1';
options.port = 8001;
```

- `options.ip` limits the app to one network address, for example `127.0.0.1` when a web server on the same machine forwards the requests.
- `options.port` sets the port. Admin uses `8000` when you start it with `npm start`.

Start an app with `--release` for production:

```bash
node index.js --release
```
