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.
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.