NextCloud AIO ssl cert

So I have a nextcloud AIO docker deployed on my domain (cloud.mydomain.tld). The problem is that, when I first open https://your-domain-that-points-to-this-server.tld:8443 and get a ssl cert, after installation the cloud.mydomain.tld has ssl issues. I fixed this by using ip:8080 and then installation and then opening cloud.mydomain.tld:8433. The problem I now have is that the AIO panel is on myip:8080, which is a self signed cert. If I move it cloud.mydomain.tld:8080, it has invalid cert. Hence, is it possible to access AIO panel with a valid ssl cert?