Skip to main content

Logo n8n

About

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

Custom env

Set custom environment variables in /app/data/env.sh using the File manager. Restart the app after making changes.

Timezone

Set the timezone by setting the GENERIC_TIMEZONE environment variable in /app/data/env.sh. Restart the app after setting the timezone.

Built-in Node modules

n8n allows using built-in node modules. To use a 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"

Whitelist the modules 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.

Custom Node Module

CLI

To use the n8n CLI, open a Web terminal:

source /run/n8n/env.sh
gosu cloudron /app/code/node_modules/.bin/n8n export:workflow --backup --output=/tmp/n8n/