Https is not running on nginx with reverse proxy on

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. https://crt.sh/?q=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: yppgi.org

I ran this command: sudo certbot --nginx -d yppgi.org -d www.yppgi.org

It produced this output:
" No matching insecure server blocks listening on port 80 found.
No matching insecure server blocks listening on port 80 found.


Your existing certificate has been successfully renewed, and the new certificate
has been installed. "

My web server is (include version): Ubuntu 18.04.4 LTS

The operating system my web server runs on is (include version): Ubuntu 18.04.4 LTS

My hosting provider, if applicable, is: WORDPRESS

I can login to a root shell on my machine (yes or no, or I don’t know): YES

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): 0.31.0

Please help me with this. It has been almost 4 days now. going confused why my website can’t run on HTTPS.

here’s my config on ngix/sites-available/

server {
listen 80;
listen 443 ssl;
server_name yppgi.org www.yppgi.org;
ssl on;
ssl_certificate /etc/letsencrypt/live/yppgi.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/yppgi.org/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / {
proxy_pass http://192.168.99.101;

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection ‘upgrade’;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_redirect off;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Ssl $scheme;
}
}

15 posts were merged into an existing topic: Certs not running & website became a mess