Forget about Nginx, I switched to this reverse proxy and it's even better
Make short work of adding a reverse proxy to your home lab with Traefik.

Once you've started self-hosting a few apps on a NAS, one of the next improvements to your home lab is adding a reverse proxy to access your services through one domain name. While many home labbers use Nginx as their reverse proxy solution, it was created as a webserver, and lacks some of the comforts of purpose-built code.