this post was submitted on 26 Mar 2024
8 points (83.3% liked)

homelab

6635 readers
27 users here now

founded 4 years ago
MODERATORS
 

My homelab is still in its infancy as I'm at the start of my self-hosting journey. I'm now down the rabbit hole though and where I can self host, I'd like to.

Not long back, I asked for some advice regarding an IFTTT replacement. I only need a tiny subset of the service, in that I want it to check some RSS feeds and send a notification if it finds one. The people of the fediverse are amazing and I got some great recommendations, however some felt like a great fit but didn't pan out. That left me with less and less.

One of the suggestions though was n8n and as I looked into giving it a whirl, I noticed it needed Traefik to be installed.

Now here's the thing, I haven't sorted out my router yet and since nothing I'm doing is facing the net, I'm kinda just chilling without a proper set up. I'm wondering, if I install Traefik along with n8n, will it break my other services? Will I still be able to install my homebrew router with OpenWRT when I finally sort that out and will it impact the IPTV which I'll sort out when I've sorted out the router?

top 8 comments
sorted by: hot top controversial new old
[–] Zikeji@programming.dev 6 points 8 months ago (2 children)

Traefik is just a reverse proxy. All that really matters is the ports you have it listening on and your current, if any, reverse proxy. And even if your preference is say, nginx w/ npm (nginx proxy manager) that's not to say you can't just reverse proxy to Traefik (though not recommended).

I will say however that Traefik is not required for N8N, it's just an example in their docs. All it does is listen on port 5678, so you just use that port in your reverse proxy configuration. They do have a docker compose file without Traefik here: https://github.com/n8n-io/n8n/blob/master/docker/compose/withPostgres/docker-compose.yml

[–] Zikeji@programming.dev 3 points 8 months ago (1 children)

I do recommend this example docker compose though: https://github.com/n8n-io/n8n/tree/master/docker/compose/withPostgresAndWorker

That one spins up N8N with a worker that handles your workflows, which is useful if you want to scale up in the future. In any case either compose file would let you access N8N locally on port 5678, and the port can be altered in the compose file itself, where you change the left side to the port you want. https://docs.docker.com/compose/compose-file/05-services/#ports

[–] sabreW4K3@lazysoci.al 1 points 7 months ago (1 children)

Thank you so much, I'll give it a go

[–] Zikeji@programming.dev 2 points 7 months ago (1 children)

My pleasure. Feel free to reach out if you have additional questions.

[–] sabreW4K3@lazysoci.al 1 points 7 months ago (1 children)

Sorry to bother you, but I do actually have a question.

I created a superuser and a normal user and saved both to the .env file I placed in my /opt/n8n directory alongside the init-data.sh and docker-compose

I then did a pull and then done an up and then I went to log in, but I'm getting this message

Init Problem

There was a problem loading init data:
Unauthorized 

What have I done wrong?

[–] Zikeji@programming.dev 1 points 7 months ago (1 children)

I'm not actually and you tell from that. Did you follow a guide / what precise steps did you perform?

[–] sabreW4K3@lazysoci.al 1 points 7 months ago

I took a break and then did a Google and it turns out that it's this[1] issue. Thank you so so much, you're amazing!

[1] https://community.n8n.io/t/not-able-to-login-to-either-docker-or-npm-version-of-n8n-via-local-network/42120/6

[–] Codilingus@sh.itjust.works 2 points 7 months ago

Can confirm, have installed n8n for a friend and traefik wasn't need. Then another friend out of state wanted access to it. So I installed traefik + authelia + crowdsec w/ traefik bouncer.