this post was submitted on 11 Nov 2025
3 points (100.0% liked)

Self Hosted - Self-hosting your services.

16620 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules

Important

Cross-posting

If you see a rule-breaker please DM the mods!

founded 4 years ago
MODERATORS
 

I've been selfhosting for a bit, but have never really gotten a solid understanding of Traefik.

What I'd like to do is have 3 machines, 1 as an "entry point" where Traefik forwards by domain to the two other machines. Ie I route to anything.domain1.com and the entry machine forwards to machine 1, anything.domain2.com forwards to machine 2.

Then on each machine have another instance of Traefik to manage the applications that machine hosts.

Is this even possible? Without using docker swarm?

Thanks.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] stratself 3 points 3 days ago (1 children)

It's entirely possible. If the 2 domains are different, you should look into SNI routing using the TCP router instead of HTTP. With the tls.passthrough flag, encryption is kept intact until it reaches the second proxy.

Thank you! The sni routing and passthrough helped get me to the right pages and reading. I have a test setup running now and it's looking hopeful.