You can try using caddy server, which will create a reverse proxy and handles tls automatically.
https://medium.com/@dileepa.mabulage/setting-up-https-for-a-local-nestjs-server-using-caddy-5dc7ce4ec317