Setting up n8n using Docker on Synology. Containter is running, but cannot access the webinterface.
I am forwarding the port 5678 to access the container from the normal network. Docker logs states that “Editor is now accessible via: http://localhost:5678. That would be the Synology box which has no browser installed.
What is the error message (if any)?
error message bottom right corner: “Error connecting to n8n - Could not connect to server”.
The issue is that n8n inside your Docker container is only listening on localhost, so it’s not reachable from other devices, hence the “Could not connect to server” error. Configuring it to listen on all interfaces and ensuring the port is forwarded correctly should make it accessible from your network.
Thank you, but I’m not sure how to handle this. The “listen to all interfaces” in particular should already be set up when using the “host” network, not the “bridge”.
Meanwhile I played around and found something regarding reverse proxy on the Synology. I set up Synology to forward “external-hostname:port” to “localhost:5678” and the router to forward from external to synology:5678 and somehow I reach the webinterface. But that doesnt seem to be end of story, because:
ValidationError: The ‘X-Forwarded-For’ header is set but the Express ‘trust proxy’ setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users.
It definitely sounds like you’re close. That new message means the reverse proxy is forwarding the request correctly, but n8n doesn’t yet trust the proxy, so it flags the forwarded headers as a misconfiguration. You just need to adjust your n8n environment settings so it recognizes the Synology proxy as trusted.
Once that’s set and you restart the container, the error should clear and the interface should load normally.
If you want, I can help walk you through the exact setting to change.
Yes, true. I forgot to configure the cookie handling. This is the settings in Synology for reference. Sorry they are in german, but I can translate if needed