I have been trying to 2 days to connect my N8N to Google Cloud. It worked last week but for some reason it doesn’t work now because of 443 connection (as per chatgpt and trying to debug for 2 days). I already created a N8N firewall rule to allow for all instances to access. And also created a cloudflare rule to allow for the IP ranges listed on cloudflare website.
Here is the error message:
Trying 3X.74.X7.0:X43…
connect to 3X.74.X7.0 port 443 failed: Connection timed out
Failed to connect to n8n.XXXXXXXX.com port 443 after 130070 ms: Couldn’t connect to server
Closing connection 0
curl: (28) Failed to connect to n8n.XXXXXXXX.com port 443 after 130070 ms: Couldn’t connect to server
FYI, I replaced some numbers above with X for confidentiality
I am self hosting on google cloud and I really need some advice and help.
This allows for proper passing of essential headers to n8n.
In your Docker/VM environment, verify that the variable is defined like this: N8N_PUSH_BACKEND=websocket
Don’t use the default value (sse). Then restart the container. This keeps the stable real-time channel active for the interface.
i installed and created the docker in google clouds ssh so i guess thats where i configure it there correct? or am i missing something here. or this configuration is done elsewhere? sorry really new to this stuff!
also i am using caddy for reverse proxy. chatgpt says " Caddy automatically handles Upgrade and Connection headers required for WebSocket proxying unless you explicitly disable them"
it seems i took the steps you advised and worked according to chatgtp but seems its still my 443 connection error. I already opened this port, any advice?