d13
@d13@programming.dev
This is a remote user, information on this page may be incomplete. View original ↗
- Comment on Good resources for setting up a domain name to a local Caddy instance 4 hours ago:
Lots of overcomplicated answers, imo.
Here’s what I did:
- Set up a DNS server (I just used Pi Hole docker)
- Tell router to use your DNS server
- Register domain
- Set up Caddy to use DNS challenge with registrars provider’s API key
- Add DNS entries to the DNS server for each service. The records point to Caddy’s IP (e.g. jellyfin.<domain>.com)
- Add each container to Caddy’s list
Now every device can hit all services.
Bonus: Set up split DNS and subnet routing with Tailscale so that it uses the DNS server for that domain. Now any device connecting to the tailnet can connect to the services just like at home. No need to reconfigure apps, etc.
Simple and it works like magic.