N8N docker telegram ngrok

Hello,
I have hosted my n8n instance using Docker in Ubuntu loaded using docker compose, I am using Ngrok to expose the local instance to the internet. I created a Telegram-based workflow in n8n, and it functioned as expected. But now I don’t want dependency of Ngrok, I would like to have only router Port forwarding for 5678, 443, 80 and have a ddns.net domain. Is possibile to have telegram node working so? What about https problem can occur in this metod? Thank you

Hey @Valerio_Vettori hope all is well. Welcome to the community.

This sounds very doable. ddns.net will give you up to 5 free domains, which you can hook up to ddns agent running on your ubuntu. On the router you port forward to ubuntu for 443, in ubuntu you run your docker compose infrastructure, where you actually terminate the connection in the traefik container, which proxies to other containers, like n8n. Integrate traefik with let’s encrypt and you have yourself an ngrok-free environment.

1 Like

Very intresting; why I Need traefik? can’t I expose Port directly? Can you explain? Thank you

Much easier to route traffic to multiple applications, makes it a breeze to get ssl certificates, acts as a reverse proxy, which can route based on a name.

Yes, this setup is possible. You can definitely use your ddns.net domain with port forwarding, but since Telegram requires a secure HTTPS connection, you’ll need to configure SSL. The most reliable way is to use a reverse proxy (like Nginx or Caddy) in front of your n8n instance, and then issue a Let’s Encrypt certificate for your DDNS domain.

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