---
title: Configuration file
project: BPM
version: 1.0
section: reference
language: en
license: Total.js Enterprise
url: https://totaljs.es/docs/bpm/1-0/reference/configuration/
updated: 2026-11-20T18:44:32.311Z
---

# Configuration file

> The keys of the config file of BPM.

The file `config` in the folder of the app holds the settings that BPM needs before it can read its database. Each line is `key : value`. Restart BPM after a change.

| Key | Example | What it does |
|---|---|---|
| `database` | `postgresql://user:password@localhost:5432/bpm?pooling=1` | The connection string of the PostgreSQL database. Required. |
| `$cors` | `https://uibuilder.totaljs.com` | The site that may call BPM from the browser. It lets the hosted form editor load the lists of your [UI components](../../guides/ui-components/). If you change **Link to UI editor** in [Settings](../../guides/settings/), put the same address here. |
| `$api` | `/admin/` | The address of the API of the screens. Do not change it. |
| `url` | `https://bpm.example.com` | The address where people open BPM. Links in e-mails, notifications and [webhooks](../../guides/webhooks/) use it, and it wins over **Address of BPM** in [Settings](../../guides/settings/). Optional. |
| `allow_local_webhooks` | `true` | For tests only: lets [webhooks](../../guides/webhooks/) call addresses of this computer and of the local network, and accepts their self-signed certificates. Default off. Never use it in production. It works only in this file. |
| `$mcp` | `true` | Turns on the MCP server at `/$mcp/`, so that people can [use BPM from their AI](../../guides/use-bpm-from-your-ai/). With `false`, the server and **MCP access** tokens do not work. |

Everything else, such as the name of the app and the editor addresses, is changed in [Settings](../../guides/settings/) and stored in the database.

## Port and mode

The port and the mode are given on the command line, not in `config`:

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

See [Install](../../guides/install/) and [Run in production](../../guides/production/).
