Connection Lost issue working with n8n container on remote host thru SSH tonnel with VSCode

Hi there!

Can someone help to configure n8n for such an environment?

In fact, it fails to consruct WebSocket, trying to costruct it on ‘/rest/push…’ instead of ‘ws://localhost:5678/rest/push…’

I’d very appreciate any advise !

Gemini said

This error (Failed to construct 'WebSocket': The URL '/rest/push...') occurs because the n8n frontend does not know the full public domain of your instance. As a result, it tries to connect to a relative path .../rest/push instead of the full wss://your-domain.com/rest/push.