Skip to content

Cloudflare changes for Monkshu

TekMonks edited this page Jul 2, 2021 · 2 revisions

When using Cloudflare with Monkshu, the following changes need to be made in order to ensure compatibility.

Disable rocket loader

  1. Rocket Loader is a feature by Cloudflare that can help with page load time. However, in doing so, this may break JavaScript content.
  2. This plugin comments out the JavaScript module tags out of your HTML content, making Monkshu components not load at all.
  3. To disable Rocket Loader, open up your Cloudflare dashboard and go to the Speed tab. Scroll down to "Rocket Loader", and toggle the feature off.

Read more...

Ensure both the backend and the frontend servers are configured to use one of the following ports

HTTP ports supported by Cloudflare:

  • 80
  • 8080
  • 8880
  • 2052
  • 2082
  • 2086
  • 2095

HTTPS ports supported by Cloudflare:

  • 443
  • 2053
  • 2083
  • 2087
  • 2096
  • 8443

Read more...

Path to Monkshu server configurations:

  • Backend -> monkshu/backend/server/conf/httpd.json
  • Frontend -> monkshu/frontend/server/conf/httpd.json

Both of these should be modified. Suggestion is to use Port 8443 for the backend API server, and of course, 443 for the frontend server.