I tried to setup my raspberry pi as an Nextcloud server. On a fresh dietpi install I install Nextcloud and then certbot. Installations did not return any errors. Access of Nextcloud via http and my dyndns adress works fine. Both ports 80 and 443 are being forwarded from my router. When I do a portscan however I get the results that port 80 is open and port 443 blocked. So far this is the only thing I found which seems wrong to me.
I would be gratefull for any tipps where I should be looking for any errors.
Did you run dietpi-letsencrypt after installing CertBot? This install itself does not configure HTTPS, for this run the mentioned command and enter additional info, for have the webserver configured accordingly.
Yes, I ran dietpi-letsencrypt after the installation of certbot. I tried a couple of other things to configure lighttpd, but unfortunately I did not get it to work.
I did a fresh install of dietpi, nextcloud, LEMP, redis and certbot this morning. I worked right out of the box (same configuration for letsencrypt as for lighttpd) and so far everything is working fine.