AIO setup - Certificate issue on main domain but not on setup pages

Hi folks,

I wanted to setup next cloud on a fresh server. I opened the relevant ports and everything works till the setup pages. SSL lock can be seen on those pages and on the last page after all containers are up and running; it tells me to go to my domain ( https://nextcloud. example. com)) - without the port 8443. There I get this error : “This site can’t provide a secure connection” and ERR_SSL_PROTOCOL_ERROR

It seems that there is some certificate issue… I checked the logs and here’s what the issue seems to be. First the certificate is acquired then for some reason it tries to obtain the certificate on IP address(when containers are starting up) and fails

Please help me locate the error. Thanks!