HTTPS : issue while trying to set up SSL certification

I am having the same problem while trying to install a new discourse on a droplet at digitalocean. It works if I don’t use Lets Encrypt, but if I use letsencrypt then my installation never finishes and I get the nginx page too.

So weird because when two months ago I tried this it worked perfectly.