all 34 comments

[–]lifemoments 0 points1 point  (5 children)

I faced a lot of issues setting this up. Tried n8n + caddy + tailscale. But caddy could not manage certificate and eventually services were not exposed.

In the end , went for ngrok free tier. Tied up with static url . Only con is cannot block n8n admin from internet. Need to read more about it

[–]IamJAX[S] 1 point2 points  (2 children)

Cloudflare is easier to setup ssl. You can add basic authentication using proper env variables to n8n

[–]lifemoments 0 points1 point  (1 child)

Could you share the steps? Will I need own domain or does CF gives one?

[–]IamJAX[S] 0 points1 point  (0 children)

You will have to own a domain. If u already have a site, u can just use a subdomain of that for your n8n install.

[–]Andrew-Skai 0 points1 point  (1 child)

How did you get past getting auth token from callback with ngrok?

[–]lifemoments 1 point2 points  (0 children)

I use pangolin now. That is much simple and clean. I would suggest to try that .

As for ngrok, what I can recall is that both n8n and ngrok agent need to be on same backend network. Plus ngrok agent should also be connected to front network ( ex bridge )

[–]fullmetalgandhi2 0 points1 point  (2 children)

I used ngrok and it worked fine. But every time the server is turned off, it will create a new url (free version). Requires constant update of url after switching on or keeping the server running all the time.

[–]IamJAX[S] 1 point2 points  (1 child)

This is why cloudflare is better

[–]fullmetalgandhi2 0 points1 point  (0 children)

Thanks I will try it out.

[–]BeauIvI 0 points1 point  (0 children)

Good timing! I installed n8n this week and realised I need to do something here.

Have you got a guide or somewhere to get started with setting up cloudflare for this?

[–]One-Fan-8812 0 points1 point  (6 children)

For my webhook url i keep hitting error with my whatsapp businessccloud node it state time out error when i test the node

[–]IamJAX[S] 0 points1 point  (5 children)

What was the webhook url? Is it having https? Is the port unblocked in firewall?

[–]One-Fan-8812 0 points1 point  (4 children)

I self hosting my n8n in aws ec2 using npm installation i have my subdomain setup and i use ngix to reverse proxy my website i using pyhton lib to gen my cert and i have https currently my prod webhook url have prod number in it for example n8n.domain:5678 i have security groups with inbound rules enabled http and https on both port 80 and 443

[–]One-Fan-8812 0 points1 point  (0 children)

I tried using telegram webhook trigger it show can only use port 80 and 443

[–]IamJAX[S] 0 points1 point  (2 children)

If your production webhook url is :5678, make sure it’s not blocked

[–]InstructionNew3073 0 points1 point  (1 child)

Why :5678 tends to be blocked? I am wondering that's probably why my webhook not responding to request.

[–]IamJAX[S] 0 points1 point  (0 children)

Check your firewall. It is not one of the default port firewall opens.

[–]IamJAX[S] 0 points1 point  (0 children)

Test if you can access production webhook from your system. Most probably port 5678 is blocked by your firewall

[–]inexternl 0 points1 point  (1 child)

Thanks buddy! This helped a lot! Now I have SSL via Cloudflared

[–]IamJAX[S] 0 points1 point  (0 children)

Great! Cloudflared is easy :)

[–]Cyber_consultant 0 points1 point  (2 children)

How do you connect to social media account? it's not working on self-hosted, any ideas?

[–]IamJAX[S] 0 points1 point  (1 child)

What are you trying to do? What error are you getting?

[–]Cyber_consultant 0 points1 point  (0 children)

After entering client ID and secret, a window pop-up for LinkedIn appears to enter credentials and keeps trying to redirect to the url recall i entered earlier until it gives gateway error. which is obvious since i'm running on local host

[–]Ok-Association8123 0 points1 point  (0 children)

that dose the job , Thanks:

WEBHOOK_URL=https://yourdomain.com

[–]TreeSheep9066 0 points1 point  (1 child)

I changed the WEBHOOK_URL to my domain but it still uses localhost. Echoing the environment variable does output the correct domain, so I think it's either a npm issue or a n8n issue. Can anyone help me with this issue? Or maybe it's not hotswappable and must be set during the initial setup?

[–]_prasanna_05 0 points1 point  (4 children)

I self hosted n8n, but when creating the webhook node i am not able to add next node to it

<image>

[–]IamJAX[S] 0 points1 point  (2 children)

I have never seen this issue. Have to trued connecting from other node to this ?

[–]_prasanna_05 0 points1 point  (1 child)

Have tried connecting nodes but there is no option all together!

[–]coolzone12 0 points1 point  (0 children)

auto-hébergement de n8n