Self-signed certificates give browser warnings. Tailscale can hand out a real one for your tailnet names.
sudo tailscale cert machine.your-tailnet.ts.net
It writes a .crt and a .key file you point your web server at. You first need MagicDNS and HTTPS turned on in the admin console. The machine name becomes public in certificate transparency logs, which is worth knowing if you care about that. For a simple web service, tailscale serve does the certificate for you.
Further reading: tailscale cert documentation
Going deeper: Run degoog on Unraid as your own search page, compared with SearXNG and 4get