Unable to access using https even after properly setting up nginx

even after setting up nginx reverse ssl proxy the external url can be accessed only by http and not https. can someone help me figure out what is wrong?

You need to forward the external port to NGINX, and have NGINX handle the connection to HA.

NGINX also needs to be configured with the SSL certificates.

oh thanks turns out i forwarded directly to homeassistant skipping ngnix altogether