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