- cross-posted to:
- nix@programming.dev
- cross-posted to:
- nix@programming.dev
Cross-posted from: https://programming.dev/post/33674513
Any general suggestions when getting started with headscale?
Cross-posted from: https://programming.dev/post/33674513
Any general suggestions when getting started with headscale?
Looks like they introduce the use Traefik with NixOS here:
How does
Traefikcompare to a reverse proxy likeCaddy?In terms of setup, Caddy is a lot simpler in syntax, but you will find more tutorials for Traefik and it has better integration with Docker. You can add labels to a container and Traefik uses that as config, whereas in Caddy, you need to set up both the container and the config file. If you want to drop a service, then it is easier in Traefik for this reason. But with decent Nix code, you can basically replicate this in Caddy. Once you set them up, they’re pretty much the same. I’ve seen some people saying Traefik is faster, but realistically, I don’t think it’s meaningful.
Note that its also possible to set up service auto discovery with traefik, the only traefik related config I do on new containers is
Shit there is? How do I set up auto discovery?
I can share my traefik setup - note I am doing this on my phone at work, so I might miss something