---
title: Configuration file
project: Flow
version: 11.1
section: reference
language: en
license: MIT
url: https://totaljs.es/docs/flow/11-1/reference/config-file/
updated: 2026-11-19T04:29:29.073Z
---

# Configuration file

> The keys you can set in the config file.

The `config` file is in the Flow folder. Each line holds a key and a value:

```text
name    : My Flow
$logger : true
```

Restart Flow after you change this file.

## Keys that apply on the first start only

Flow reads these keys the first time it starts and stores the values. After that, the stored values win, and changing the file has no effect.

| Key | What it sets |
|---|---|
| `name` | The name of the application. Change it later in [Settings](../settings-screen/). |
| `env` | The environment: `dev`, `test` or `prod`. Change it later in [Settings](../settings-screen/). |
| `components` | The address of the component catalog. Change it later in [Settings](../settings-screen/). |
| `templates` | The address of the template catalog. |

## Keys that apply on every start

| Key | Example | What it does |
|---|---|---|
| `$port` | `8000` | The port Flow listens on. |
| `$ip` | `127.0.0.1` | The address Flow listens on. |
| `$logger` | `true` | Writes the [server log](../../guides/server-log/) to `logs/debug.log`. |
| `directory` | `/data/flow/` | An absolute path to the folder for your FlowStreams, used instead of the `flowstream` folder. |
| `flowstream_memory` | `512` | The memory limit in megabytes for FlowStreams whose **Max. memory** is `0`. |

## Generated keys

Flow creates the `cookie` and `cookie_secret` values on the first start and stores them in `databases/config.json`. Keep that file: your password depends on the secret.
