I have a Linux VPS running nginx reverse proxy (two internal sites served through docker) that resolve to a public DNS tied to the VPS public IP. Example: https://site1.domain.com and https://domain.com The sites only resolve to DNS, not IP address. I have the firewall on the VPS only allowing public inbound connections from a select set of public IPs, not the entire public internet.
I would like to user Tailscale to access these websites from my devices other than from the select set of IPs. When I installed Tailscale on the VPS I am able to get to the nginx http interface but not the other two sites. The nginx server_name is set to the public DNS and will only resolve to that domain name.
How to do I set this up to access these sites through Tailscale? Do I need to add the Talescale IP as a server_name in the nginx config (I tried this but it did not work)?