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:
name : My Flow
$logger : trueRestart 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. |
env | The environment: dev, test or prod. Change it later in Settings. |
components | The address of the component catalog. Change it later in Settings. |
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 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.