No description
Find a file
Glenn 8118bd97c8
All checks were successful
continuous-integration/drone/push Build is passing
docs: Tidy-up and complete config variables
2025-09-04 15:00:39 +02:00
.dockerignore ci: Add deploy step 2023-02-21 14:30:36 +01:00
.drone.yml Update .drone.yml 2024-12-29 15:52:06 +00:00
docker-compose.yml fix: Use generated image instead of the original one 2023-01-12 20:39:17 +01:00
Dockerfile Update Dockerfile 2025-09-04 12:19:43 +00:00
README.md docs: Tidy-up and complete config variables 2025-09-04 15:00:39 +02:00

Dokku setup

Create app

$ ssh dokku@danaos.infra.glenux.net apps:create automation

Configure N8N base

$ dokku config:set --no-restart N8N_HOST=automation.danaos.apps.glenux.net 
$ dokku config:set --no-restart N8N_PORT=443
$ dokku config:set --no-restart N8N_PROTOCOL=https
$ dokku config:set --no-restart NODE_ENV=production
$ dokku config:set --no-restart WEBHOOK_URL=https://automation.danaos.apps.glenux.net/
$ dokku config:set --no-restart VUE_APP_URL_BASE_API=https://automation.danaos.apps.glenux.net/
$ dokku config:set --no-restart GENERIC_TIMEZONE=Europe/Paris
$ dokku config:set --no-restart EXECUTIONS_TIMEOUT=600
$ dokku config:set --no-restart EXECUTIONS_TIMEOUT_MAX=1200

Configure N8N auth & security

$ dokku config:set --no-restart N8N_BASIC_AUTH_ACTIVE="true"
$ dokku config:set --no-restart N8N_BASIC_AUTH_USER="admin"
$ dokku config:set --no-restart N8N_BASIC_AUTH_PASSWORD="foobar123"
$ dokku config:set --no-restart N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS="true"
$ dokku config:set --no-restart N8N_USER_MANAGEMENT_DISABLED=false

Configure N8N database

$ dokku config:set --no-restart DB_TYPE=postgresdb
$ dokku config:set --no-restart DB_POSTGRESDB_DATABASE=xxx
$ dokku config:set --no-restart DB_POSTGRESDB_HOST=xxxx
$ dokku config:set --no-restart DB_POSTGRESDB_PORT=xxxx
$ dokku config:set --no-restart DB_POSTGRESDB_USER=xxxx
$ dokku config:set --no-restart DB_POSTGRESDB_PASSWORD=xxxx

Configure N8N emails

$ dokku config:set --no-restart N8N_EMAIL_MODE=smtp
$ dokku config:set --no-restart N8N_SMTP_HOST=
$ dokku config:set --no-restart N8N_SMTP_PORT=
$ dokku config:set --no-restart N8N_SMTP_USER=
$ dokku config:set --no-restart N8N_SMTP_PASS=
$ dokku config:set --no-restart N8N_SMTP_SENDER
$ dokku config:set --no-restart N8N_SMTP_SSL=

Variables

# The port n8n should be made available on
N8N_PORT=5678

# This ones are currently only important for the webhook URL creation.
# So if "WEBHOOK_TUNNEL_URL" got set they do get ignored. It is however
# encouraged to set them correctly anyway in case they will become
# important in the future.
N8N_PROTOCOL=https
N8N_HOST=n8n.example.com

# The IP address n8n should listen on
N8N_LISTEN_ADDRESS=1.1.1.1

export VUE_APP_URL_BASE_API=https://n8n.example.com/

Reference