I updated the Node modules and configured the n8n proxy correctly. It’s working fine in the terminal, and I can confirm it using npm list inside the container. The n8n proxy is also responding correctly. However, when I check the same through Postman or access the website URL, it’s not working — specifically, requests related to node_modules are failing.
Below is my n8n setup with the environment variables and Dockerfile. Any suggestions on resolving this issue would be appreciated.
docker-compose.yaml:
Its nothing but updating proxy url to the n8n, which i found from some where from google, to update oxylabs residential proxy url,its working fine in the terminal but not working in the ui, it not working in the client side(frontend).
Maybe N8N_PROXY is an old version of what is now WEBHOOK_URL, N8n_PORT, and/or N8N_HOST. I suspect it isn’t doing anything, or at least it isn’t doing what you think it should be doing.
I also noticed that you are running npm install -g, while building the docker image, as root to install your extra packages. I don’t know the subtleties of how npm works, but it might be worth a try (just to see), to run npm install (without the -g) as the node user. Possibly the file permissions in the container, for npm libs are contributing the troubles.