tailscale / caddy-tailscale

A highly experimental exploration of integrating Tailscale and Caddy.
Apache License 2.0
422 stars 44 forks source link

Issue with shortname redirection #77

Closed tkeeler33 closed 1 month ago

tkeeler33 commented 1 month ago

I'm trying to redirect https://myhost to https://myhost.tail1234.ts.net using the following caddy block:

https://myhost {
  redir https://myhost.tail1234.ts.net{uri} 308
}

However, If I leverage HTTPS support the bind takes precedence and the shortname fails to redirect:

https://myhost.tail1234.ts.net {
  bind tailscale/myhost
}

Does anyone know how I can redirect my https shortname to fqdn?

tkeeler33 commented 1 month ago

Sorry, I haven't had enough coffee today...