SSL doesnt work

Greetings,

Thank you for asking.

May I ask if you have added Cloudflare IP’s to Nextcloud configuration file? :thinking:

Re-check if Cloudflare is allowed to connect to your origin host to as follows in the below article:

Nevertheless, Cloudflare IP addresses list can be found here:

Furthermore, before moving to Cloudflare, was your Website working over HTTPS connection?

If you already have Let’s Encrypt on the server, you are good.
Make sure to select Full (Strict) SSL by navigating to the SSL/TLS tab of Cloudflare dashboard for your domain name:

Otherwise, may I ask what SSL option have you got selected under the SSL/TLS tab at Cloudflare dashboard for your domain ( Flexible, Full, Full Strict … )?

In case you do not have an SSL certificate, you can use Cloudflare SSL, if so, kindly make sure you follow the instructions as follows on the below article to setup an SSL certificate using Cloudflare Origin CA Certificate:

In terms of a Nextcloud, you could have issues if you are on a Free plan (even Business) and going to upload files larger than 100MB. Per default, you are allowed to upload 100MB for proxied :orange: hostname (DNS record) in a single request.

Cloudflare limits the upload size (HTTP POST request size) per plan type:

  • 100MB Free and Pro
  • 200MB Business
  • 500MB Enterprise by default. Contact Customer Support to request a limit increase.

Source article:

Otherwise, if you are on Business or Enterprise plan, you can increase this (Business up to 200MB and Enterprise 500MB or larger upon request) and upload larger files.

I’d suggest you to either split it in smaller chunks, or continue using unproxied :grey: (DNS-only) hostname (DNS record) when you are uploading such large files. After you finish, switch back to :orange:.

Furthermore, try disabling / removing the Content Security Policy (CSP) for which I can see it is causing some issues and prevent them from loading your website resources.

Try disabling Rocket Loader at Cloudflare.

I’d suggest you to test and temporary enable the “Pause Cloudflare” and check if it works by accessing directly via your domain name by:

  1. Use the “Pause Cloudflare on Site” option from the Overview tab for your domain at dash.cloudflare.com .
  2. The link is in the lower right corner of that page.
  3. Give it five minutes to take effect, then make sure site is working as expected with HTTPS.
  4. If all good, un-pause Cloudflare