Limit on uploads via Cloudflare (self-hosted)

I wonder if someone can upload files with more size than 100 mb on Cloudflare self-hosted Ghost instances.

Changing the Nginx `client_max_body_size` is not working on my end. I understand the parameter and it’s working with files smaller than 100 mb.

Any tip or advice will be appreciated.

Don’t think you can on Cloudflare free plans, the max limit is 100 MB for uploads.

You could temporarily disable Cloudflare’s proxy by going to your Domain’s DNS settings in Cloudflare and toggling the orange cloud icon off, upload what you need to upload, and then turn it back on.

Are you regularly needing to upload files larger than 100MB via your site’s frontend?

I started a podcast and I like to host my files. From the time being I’m using a CDN and a HTML audio card.

Unfortunately I tried to disable the proxy on Cloudflare and upload but it didn’t work (without caching on Cloudflare).

Thanks for your reply.

Sometimes it can take a few moments for DNS requests to route directly to your server after disabling Cloudflare’s proxy. Did you give it a few minutes? Usually I do a hard refresh in my browser, and then switch over to Private browsing to make sure nothing is cached.

If you disabled Cloudflare’s proxy’ing, and then changed your client_max_body_size to something larger than 100 MB in your NGINX config’s http or server block, for example:

client_max_body_size 500M;

and then did:

sudo nginx -t && sudo systemctl reload nginx

it seems it should work.

But if you are using Cloudflare’s free plan, it will always cap you at 100 MB uploads and disabling it every time you want to upload a podcast episode seems like a hassle.

Perhaps you could host your podcast episodes on a file storage service? Cloudflare gives you 10 GB for free with their R2 object storage.

1 Like

Thanks for your follow up, I appreciate it. You see, I’m an old school Internet user, so I like to host my files.

It has probably no sense for someone that usually use cloud apps but I like to use Cloudflare for DNS resolving and manage all my files and server settings.

It seems to using a CDN is the best approach for now. I’ll probably test some scripts to chunk the files or something.