You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My goal is to host a web service behind tailscale, and leverage tailscale's ability to know which user is connecting as an auth mechanism.
I want my service, running as tailscale device my-node, to be accessible over a custom domain name foo.bar.com (placeholder). Once the node is registered with tailscale, I want to set the DNS A record for foo.bar.com to point at my-node's tailscale IP.
I have the following Caddyfile:
{
order tailscale_auth after basicauth
}
foo.bar.com:443 {
bind tailscale/my-node
tailscale_auth
respond "Success!"
}
I generated a TS_AUTHKEY and set it in caddy's environment before running caddy run --config /etc/config/Caddyfile. I get the following error:
so, we've changed quite a bit in the plugin since you filed this issue, so I'm wondering if you'd be willing to try again. I setup a similar config, and ended up getting the error:
Error: loading initial config: loading new config: http app module: start: starting HTTP/3 QUIC listener: listen udp: lookup caddytest: no such host
Disabling HTTP3 solved, so I ended up with a config of:
Note I'm using static TLS cert files rather than using caddy's https support, though I'm not sure that matters for this. So if you get a chance, try again and let me know if still run into the same issue.
My goal is to host a web service behind tailscale, and leverage tailscale's ability to know which user is connecting as an auth mechanism.
I want my service, running as tailscale device
my-node
, to be accessible over a custom domain namefoo.bar.com
(placeholder). Once the node is registered with tailscale, I want to set the DNS A record forfoo.bar.com
to point atmy-node
's tailscale IP.I have the following Caddyfile:
I generated a
TS_AUTHKEY
and set it in caddy's environment before runningcaddy run --config /etc/config/Caddyfile
. I get the following error:I tried changing
bind tailscale/my-node
tobind tailscale/
and got:The error goes away when I drop
foo.bar.com
from the route directive.The text was updated successfully, but these errors were encountered: