HTTP reverse proxy for Tailscale
commits
Author
Commit
Message
Date
Ref: https://tailscale.com/kb/1482/client-metrics#collect-metrics
The code is easier to follow this way, there's very little of it anyway.
The default handler logs to the global stdlib logger. This uses our
structured logger and adds the upstream to the log line.
I've never used this, and it makes things more complex.
This is still useful for services that work better with TLS such as
https://github.com/distribution/distribution.
Create one tsnet for each upstream, which gets us DNS and Funnel (not yet implemented) for free.
See https://tailscale.com/changelog/#2022-11-21-client.