Spanish Total.js
English
Documentation For AI agents
Contents

Configuration

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

.md GitHub
On this page

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

Keys of the config file

KeyDefaultWhat it does
nameCodeThe name of the instance. Code name in Settings replaces it
backup/www/tmp/backup/The folder for file backups and branches
autodiscover/www/www/The folder that Code scans for projects
floweditorhttps://floweditor.totaljs.comThe address of the FlowStream designer
uibuilderhttps://uibuilder.totaljs.comThe address of the UI Builder

Environment variables

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

VariableWhat it does
FOLDER_WWWThe folder of the applications on the host. Needed for Docker projects
FOLDER_NPMThe folder of the shared node_modules on the host. Needed for Docker projects
UIDThe identifier of this Code instance
ORIGINThe pattern for the addresses of new projects, for example http://{0}.localhost
CLOUDWith 1, Add opens the project form at once with a generated address, and the path can't be changed
LIMITThe maximum number of projects. The Projects screen shows the limit

Example

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