---
title: The config file
project: Todomator
version: 1.7
section: reference
language: en
license: MIT
url: https://totaljs.es/docs/todomator/1-7/reference/config-file/
updated: 2026-11-19T04:33:09.388Z
---

# The config file

> All keys of the config file in the application folder.

The `config` file is in the application folder. Restart Todomator after you change it.

```text
database                    : postgresql://user:password@localhost:5432/todomator
$api                        : /api/
mail              (Object)  : {"server":"smtp.example.com","port":587,"secure":false,"user":"user","password":"password","tls":{"ciphers":"SSLv3"},"from":"robot@example.com"}
```

## database

The connection to your PostgreSQL database.

## $api

The address of the Todomator API. Keep the value `/api/`.

## mail

The mail server that sends the codes for [two-factor authentication](../../guides/two-factor-authentication/). Todomator sends no other email.

| Key | Meaning |
| --- | --- |
| `server` | The name of the mail server. |
| `port` | The port of the mail server. |
| `secure` | `true` for a connection that is encrypted from the start. |
| `user` | The user name for the mail server. |
| `password` | The password for the mail server. |
| `tls` | Options for the encrypted connection. |
| `from` | The address the messages come from. |

Other options are in the [settings](../../guides/settings/) screen.
