Skip to content

n8n App

About

n8n Free and open fair-code licensed node based Workflow Automation Tool.

Custom env

Custom environment variables can be set in /app/data/env.sh using the File manager. Be sure to restart the app after making changes.

Timezone

To set the timezone, set the GENERIC_TIMEZONE environment variable in /app/data/env.sh. Be sure to restart the app after setting the timezone.

Built-in node modules

n8n allows using built-in node modules. To use an built-in node module, edit /app/data/env.sh, add a line like below and restart the app:

export NODE_FUNCTION_ALLOW_BUILTIN=crypto

See upstream docs for more information.

Custom node modules

To install custom node modules, edit /app/data/env.sh using the File manager:

# note: this is a space separated list
export EXTRA_NODE_MODULES="handlebars@4.7.7 jsonata@2.0.2 marked@4.3.0"

The modules have to be whitelisted for use:

# note: this is a comma separated list
export NODE_FUNCTION_ALLOW_EXTERNAL=handlebars,jsonata,marked

Restart the app and use the module in Function nodes. Restarting the app will install the modules specified in EXTRA_NODE_MODULES automatically. See upstream docs for more information.

CLI

To use the n8n CLI, open a Web terminal:

# gosu cloudron /app/code/node_modules/.bin/n8n export:workflow --backup --output=/tmp/n8n/