This is a small tweak to the nginx auth plugin provided
by tailscale, but adapted to work with Traefik
Listens on http
Uses X-Forwarded-For instead of Remote-IP
X-Forwarded-Port instead of Remote-Port (this is almost certainly wrong as it
should be the source port, but traefik does not yet provide use an
equivalent)
Command nginx-auth is a tool that allows users to use Tailscale Whois
authentication with NGINX as a reverse proxy. This allows users that
already have a bunch of services hosted on an internal NGINX server
to point those domains to the Tailscale IP of the NGINX server and
then seamlessly use Tailscale for authentication.