coffeeboba

joined 2 years ago
[–] coffeeboba@lemmy.world 2 points 1 month ago* (last edited 1 month ago) (1 children)

Basically yeah.

CNAME points my.domain to *.machine-that-hosts-caddy.my-ts-domain.ts.net

caddy running on that machine directs subdomains to machine:port pairs, where “machine” is either the tailscale name or IP for the machine hosting the service

[–] coffeeboba@lemmy.world 6 points 1 month ago* (last edited 1 month ago) (3 children)

I use a reverse proxy (caddy), and point a domain at my machine.ts-domain.ts.net which hosts caddy

this way I can go to service.my.domain instead of machine:port as long as I’m connected to tailscale. any devices not on my tailscale network just get bounced if they hit the domain