Page empty on specific domain

Hello, when trying to login to my nextcloud through cloud.example1.com the only option it gives me is to login with google, when I do so I am logged in but the page is empty and when you try to click something nothing happens. When I added a different domain, test.example2.com, everything was working properly. I checked the logging and everytime I reloaded the page on cloud.example1.com I got these errors-

|Debug|maps|Could not find resource file "/apps/maps/js/filetypes.js"||2020-05-20T15:20:00-0500|
|---|---|---|---|---|
|Debug|no app in context|Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent||2020-05-20T15:20:00-0500|
|Debug|no app in context|Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent||2020-05-20T15:20:00-0500|
|Debug|no app in context|Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent||2020-05-20T15:20:00-0500|
|Debug|no app in context|Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent||2020-05-20T15:20:00-0500|
|Debug|no app in context|Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent||2020-05-20T15:20:00-0500|
|Debug|no app in context|Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent||2020-05-20T15:20:00-0500|
|Debug|no app in context|Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent||2020-05-20T15:20:00-0500|
|Debug|core|SCSSCacher: /apps/settings/css/settings.scss compiled and successfully cached||2020-05-20T15:19:21-0500|

Thanks for the help!

Why should Nextcloud ask you to login with google?

Tell us more about your setup like version, os, hoster and so on.

I’m using ubuntu 18.04, nextcloud 18.0.4, hoster- https://netcup.de
It is asking me to login with google because I have social login set up.
I am also getting an error with the background jobs- “Last job execution ran 29 minutes ago. Something seems wrong.”
original domain thats not working
test domain that’s working fine

Solved the issue myself, found out it was an script optimization setting on cloudflare that I had to turn off.

Is there a sense to use CDN like Cloudfare?

Yes, for what I am doing. I get a lot of DDOS attacks so it protects me from downtime.

Ok. But i think for normal individual file sharing it make no sense.