There are numerous problems. The main one is both HTTP and HTTPS connections to your domain are refused.
But, that nginx config has all of your requests handled by your HTTP (port 80) server block. You are not getting the benefit of having a cert and using HTTPS.
You must first restore connectivity to your domain. Check firewalls. Check that the IP in the public DNS matches the public IP of your server. Check any port forwarding or NAT you may have. Use the Let's Debug test site to check your connection. https://letsdebug.net
Once you pass the Let's Debug test try to get a cert. If that fails please answer as many questions as you can from the form below
Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:
I ran this command:
It produced this output:
My web server is (include version):
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know):
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):