How to use Tailscale with a Reverse Proxy

Tailscale is a great tool for exposing servers without having to open ports. If you have a DNS based reverse proxy where different apps and services are exposed through different domain names, you'll find that getting the reverse proxy to work can be quite tricky. This guide will walk you through how to setup a custom DNS server to get your reverse proxy working through Tailscale.