Skip to content

kemboi22/ns8-n8n

 
 

Repository files navigation

n8n

n8n allows you to build flexible workflows focused on deep data integration

Install

Instantiate the module with:

add-module ghcr.io/compgeniuses/n8n:latest 1

The output of the command will return the instance name. Output example:

{"module_id": "n8n", "image_name": "n8n", "image_url": "ghcr.io/compgeniuses/n8n:latest"}

Configure

Let's assume that the n8n instance is named n8n1.

Launch configure-module, by setting the following parameters:

  • lets_encrypt: Set LEtsecnrypt to True or False, Default is FALSE

  • http2https: set redirect to True or False, Default is True

  • host: the traefik host url for the project

  • ...

Example:

api-cli run module/n8n1/configure-module --data '{"host": "n8n.domain.com"}'

or if modifying another value: 

api-cli run module/n8n5/configure-module --data '{"host": "n8n.domain.com","n8n_name": "Myn8n"}'

api-cli run module/n8n1/configure-module --data '{
    "host": "n8n.host.org",
    "lets_encrypt": false,
    "http2https": true,
}'

The above command will:

  • start and configure the n8n instance
  • (describe configuration process)
  • ...

Send a test HTTP request to the ns8-n8n backend service:

curl http://127.0.0.1/n8n/

Smarthost setting discovery

Some configuration settings, like the smarthost setup, are not part of the configure-module action input: they are discovered by looking at some Redis keys. To ensure the module is always up-to-date with the centralized smarthost setup every time kickstart starts, the command bin/discover-smarthost runs and refreshes the state/smarthost.env file with fresh values from Redis.

Furthermore if smarthost setup is changed when ns8-n8n-ngx is already running, the event handler events/smarthost-changed/10reload_services restarts the main module service.

See also the systemd/user/n8n-server.service file.

This setting discovery is just an example to understand how the module is expected to work: it can be rewritten or discarded completely.

Uninstall

To uninstall the instance:

remove-module --no-preserve n8n1

Testing

Test the module using the test-module.sh script:

./test-module.sh <NODE_ADDR> ghcr.io/compgeniuses/n8n:latest

The tests are made using Robot Framework

UI translation

Translated with Weblate.

To setup the translation process:

To Do

About

NEthserver 8 Module for n8nio

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 65.7%
  • Python 12.6%
  • Shell 9.6%
  • JavaScript 6.5%
  • HTML 2.4%
  • RobotFramework 2.1%
  • Other 1.1%