Port forwarding for internal network to expose API web hooks

I am running n8n locally on my computer using Docker. I just set this up, so it is the latest version. I have some basic workflows working, but want to use integrations that use webhooks/callbacks.

I want to expose only the API webhooks functionality to the internet from my internal computer, not the whole n8n application.

If I forward port 443/80(external) to 5678, or even 5678 (external) to 5678, I feel like that will expose the whole n8n application to the outside.

Has anyone set this up? Do I need to expose the whole application, and if so, how to secure n8n properly?

Hi @nodemaster, welcome to community!
Have you been trying to expose ur localhost with ngrok before?

There is a WEBHOOK_URL property you can set as an environment variable with your external https base url. Then just leave your editor and other variables the same/default. I haven’t tried it personally, but it should work.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.