Are you running any firewall on your debian machine? Maybe install ufw firewall and open same ports in there. Then try again.
Forward ports 80 and 443, set them up in nginx config and use certbot to get a SSL certificate if you have a domain for your site.
Are you running any firewall on your debian machine? Maybe install ufw firewall and open same ports in there. Then try again.