Nextcloud HTTPS and Domain

Hello everyone!

Currently, my nextcloud is accessible via my servers IP address. I get the error to secure my server with HTTPS.

I have a subdomain from freedns.afraid.org, I saw it recommended as a free option vice paying for a domain. I am trying to access my nextcloud server via that domain vice the IP address. I’ve tried watching numerous tutorials, I’ve edited both the default.config and default-ssl.config file for HTTP and HTTPS respectively using the Hardening and security guidance — Nextcloud latest Administration Manual latest documentation documentation, but I am extremely confused and at this point frustrated. I have no idea where to go from here. I’ve broken my apache2 service a few times, but luckily i’ve got it back working again.

You can try to find the answer with ChatGPT and let it explain what you don’t understand.

It will give you a series of suggestions that you can work through one after the other and one of them will work. That’s how I do it.

It seems you are very beginner lacking experience. Please review 101: Self-hosting information for beginners to understand what to expect and which areas you need to educate yourself if you want to host a system yourself.

Hey there,
you might want to check out my response to a similar issue here: Docker-based Nextcloud AIO with Nginx on a separate Ubuntu VM. It covers some tips that could be helpful when setting up HTTPS and configuring your domain.

If you still run into any trouble, let me know, and we can figure out the next steps together.