Hosting n8n

I am hosting n8n in an aws eks cluster and have problems with configuration.

Building and running workflows is fine.

But URL generated by n8n are pointing to localhost.
eg. the error message

{
    "execution": {
        "id": 231,
        "url": "https://localhost:5678/execution/workflow/1/231",
        "retryOf": "34",
        "error": {
            "message": "Example Error Message",
            "stack": "Stacktrace"
        },
        "lastNodeExecuted": "Node With Error",
        "mode": "manual"
    },
    "workflow": {
        "id": "1",
        "name": "Example Workflow"
    }
}

Changing VUE_APP_URL_BASE_API did not work.

Changing the N8N_HOST, N8N_PROTOCOL changes that to https://myserver:5678

But when I change the N8N_PORT to 443 the server crashes.

I could not find an environment variable the set the external URL prefix.

 n8n-engine-7857cc7bcf-gzlgq:n8n-engine Last session crashed
 n8n-engine-7857cc7bcf-gzlgq:n8n-engine Initializing n8n process
 n8n-engine-7857cc7bcf-gzlgq:n8n-engine User settings loaded from: /home/node/.n8n/config
 n8n-engine-7857cc7bcf-gzlgq:n8n-engine Last session crashed
 n8n-engine-7857cc7bcf-gzlgq:n8n-engine Initializing n8n process

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:
  • verson: 1.73.1
  • Database: SQLite
  • n8n EXECUTIONS_PROCESS setting: own
  • Running n8n via : Docker
  • Operating system: Docker

Welcome to the community!

You need to set n8n_webhook_url or something like that.
For SSL I recommend using a reverse proxy like NGINX or Traefik.

1 Like

setting WEBHOOK_URL solved it

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.