Many people would be getting connection lost on their Linux server hosting n8n using Docker. These the steps I performed. 1st of all I have running on 1.99.x version, this issue was happening even after I enabled websockets on apache β please ask ChatGPT, it can guide into setting up Websocket on apache.
So I have specifically used n8n version 1.78.1 and then it got resolved.
I executed the following command to run n8n on my self hosted Linux server.
docker run -it --rm --name n8n -e N8N_HOST=βhttps://your-domainβ -e WEBHOOK_URL=βhttps://your-domainβ -e VUE_APP_URL_BASE_API=βhttps://your-domainβ -e N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n:1.78.1
I donβt know how exactly it looks on apache, although I encountered a similar problem on nginx after updating, from what I saw, n8n is quite restrictive about reverse proxy, in my case it was necessary to define a specific proxy header Origin, Iβm leaving aside the previous problem in 1.94 where I was having βfunβ with the nginx and docker config for 1-2 hours together with a senior
Hi All, After some hard work, I was able to run n8n on Self Hosted Linux server with NGNIX & Docker compose. I have written an article on the same. You can refer it here. I hope all your issues will be resolve with Connection Lost and you can also have the latest version. Refer this link: https://medium.com/@sap.btp.cpi01/n8n-docker-latest-stable-version-110a7c35c89a