HTTPS with Tailscale certs & TS domain

I'm just curious if I can pull this off. I understand that tailscale does HTTPS letsencrypt certs (https://tailscale.com/kb/1153/enabling-https). I also found that traefik supports tailscale cert resolver natively (https://www.tailscale.com/blog/traefik-certificate-resolver?ref=traefik.io & https://traefik.io/blog/exploring-the-tailscale-traefik-proxy-integration/) I want to set the local domain to my tailnet domain so that jellyfin.<tailnetdomain>.ts.net uses the tailscale cert resolver and resolves the HTTPs certificate. is there any way I can achieve this? can I set the local domain to be the tailnet domain? what I've tried I've changed myresolver to
certificatesResolvers:
myresolver:
tailscale: {}
certificatesResolvers:
myresolver:
tailscale: {}
and the following user config
services:
runtipi-reverse-proxy:
volumes:
- /var/run/tailscale/tailscaled.sock:/var/run/tailscale/tailscaled.sock
- /var/lib/tailscale/certs:/certs/tailscale:ro
services:
runtipi-reverse-proxy:
volumes:
- /var/run/tailscale/tailscaled.sock:/var/run/tailscale/tailscaled.sock
- /var/lib/tailscale/certs:/certs/tailscale:ro
with this, I can get https://<machinename>.<tailnet>.ts.net (host domain) https working with a valid lets encrypt cert. but the subdomains such as deluge.<machinenmae>.<tailnet>.ts.net does not resolve at all. in context, I setup <tailnet>.ts.net as the local domain since everything is running inside tailscale
Tailscale
Enabling HTTPS · Tailscale Docs
Learn how to configure HTTPS for devices in your Tailscale network.
Traefik Proxy now offers Tailscale as certificate resolver
Traefik, the popular load balancing and reverse proxy tool, has added support for Tailscale as a certificate resolver in Traefik Proxy 3.0 beta, the latest release of its forward proxy offering. Today, one of the engineers behind this integration has published a fun deep dive into how it works and how they’re using Tailscale to help with testing...
12 Replies
Stavros
Stavros9mo ago
Hello Tailscale doesn't support subdomains on machine names so service.machine.network.ts.net is not possible
Bharat Kalluri
Bharat KalluriOP9mo ago
Got it, thanks!
Stavros
Stavros9mo ago
Although you could technically achieve something similar with the local domains and trust the certificate manually
Bharat Kalluri
Bharat KalluriOP9mo ago
Yeah, I did not want to go through the whole setup of trusting the certificates manually. Tailscale certs were nice because they were from let’s encrypt.
Stavros
Stavros9mo ago
You can try using the dns challenge guide on our docs Although you will need a domain
Bharat Kalluri
Bharat KalluriOP9mo ago
I do have a domain, I guess I’ll give it a shot.
Stavros
Stavros9mo ago
Let me send you the link
Stavros
Stavros9mo ago
Runtipi
Runtipi - Homeserver management made easy
Free and open-source, Runtipi lets you install all your favorite self-hosted apps without the hassle of configuring and managing each service. One-click installs and updates for more than 80 popular apps.
Bharat Kalluri
Bharat KalluriOP9mo ago
Thanks a lot 👍 Will check it out. I’ve set it up as specified, works great! One question, should I enable “expose app to internet” one by one or is there a way I can make my local domain something along the lines of Cloud.bharatkalluri.com So that Jellyfin.cloud.bharatkalluri.com will automatically get a cert?
Nicolas
Nicolas8mo ago
@Bharat Kalluri this would require a dns challenge which we don’t support yet unfortunately Oh but you set it up manually You still have to add the domain one by one yes Exposing everything automatically would be quite risky
Bharat Kalluri
Bharat KalluriOP8mo ago
If we can specify an optional resolver for local secure sites, then technically we can pull it off. Right? Because technically tipi.lan would be a local. If I can re configure that to cloud.bharatkalluri.com and use my resolver for certs. Then technically it might work. Right now this does not work since local secure does not have a resolver. I tried 😅
Nicolas
Nicolas8mo ago
Yes you are correct but it would mean to refactor all apps for your case

Did you find this page helpful?