---
title: Configuration
project: Code
version: 2.0
section: reference
language: en
license: MIT
url: https://totaljs.es/docs/code/2-0/reference/configuration/
updated: 2026-11-19T04:32:09.378Z
---

# Configuration

> The keys of the config file and the environment variables of Total.js Code.

Code reads its configuration from the `config` file in its main folder. Restart Code after you change it.

## Keys of the config file

| Key | Default | What it does |
|---|---|---|
| `name` | `Code` | The name of the instance. **Code name** in [Settings](../settings/) replaces it |
| `backup` | `/www/tmp/backup/` | The folder for file backups and branches |
| `autodiscover` | `/www/www/` | The folder that Code scans for projects |
| `floweditor` | `https://floweditor.totaljs.com` | The address of the FlowStream designer |
| `uibuilder` | `https://uibuilder.totaljs.com` | The address of the UI Builder |

## Environment variables

Set these in the `environment` section of `docker-compose.yaml`, or in the environment of the process.

| Variable | What it does |
|---|---|
| `FOLDER_WWW` | The folder of the applications on the host. Needed for [Docker projects](../../guides/docker/) |
| `FOLDER_NPM` | The folder of the shared `node_modules` on the host. Needed for Docker projects |
| `UID` | The identifier of this Code instance |
| `ORIGIN` | The pattern for the addresses of new projects, for example `http://{0}.localhost` |
| `CLOUD` | With `1`, **Add** opens the project form at once with a generated address, and the path can't be changed |
| `LIMIT` | The maximum number of projects. The **Projects** screen shows the limit |

## Example

```yaml
environment:
  - UID=code
  - ORIGIN=http://{0}.localhost
  - FOLDER_WWW=/your/local/path/apps
  - FOLDER_NPM=/your/local/path/node_modules
  - LIMIT=10
```
