Certificate Challenge Failed, Connection Refused behind NGINX

Oh sweet, so the proper command will be sudo certbot --webroot -w /var/www/html -d danielr.xyz -d www.danielr.xyz --nginx ?