Expected Reading Time: 2 minutes

NextCloud in collaboration with CloudFlare is the combination I use, among others. After switching my DNS servers to CloudFlare, I noticed that my NextCloud could still be opened in principle, but no more data was loaded.


What is the problem?

The login input fields and the button had simply disappeared. The register button as well. However, the solution was easy to implement after some research. The problem is solved by the Rocket Loader caused in CloudFlare.


What is Rocket Loader?

What is Rocket Loader? According to CloudFlare, Rocket Loader is supposed to improve the loading time of pages with JavaScript. This is precisely defined by the statement:

Rocket Loader prioritizes your site's content (text, images, fonts, etc.) by delaying the loading of all your JavaScript until after rendering.

Source: CloudFlare (self-translated)

However, in conjunction with NextCloud, this apparently breaks the entire feature.


Solution

Who does not want to do without the feature, which has the possibility in CloudFlare free of charge a so-called Page Rule to create. This can be created directly in the overview of your website configured by CloudFlare via the Page Rules tab.

NextCloud with CloudFlare Page Rules
CloudFlare Page Rules

There you create a new page rule for Cloudflare. Enter your domain or subdomain and select the Rocket Loader setting and leave the slider on Off. Save the whole thing and you have normal access to your NextCloud again! So you can use the advantages of NextCloud in connection with CloudFlare.


Conclusion

Running NextCloud with CloudFlare is not witchcraft. It only requires a small change in the CloudFlare dashboard and everything works as it should. This way, the Rocket Loader can still be used for other (sub)domains to allow for increased speed. If you have any questions, I am always available in the comments or via the contact form.

Solution Source: Nextcloud Forum


0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

en_US