Error 524 with cloudflare tunnel

So, I recently tried to self host seafile with the cloudflare tunnel for external connections, and everything went quite smoothly. Yesterday I uploaded several files (about 26GB) to the server (without problems) and tried to sync the library to a windows computer with the seafile client. These are a LOT of small files.

The client gives me a server error, and when I inspect the logs I see an error 524. As I understand this is a cloudflare error, as the server takes too much time to deliver the file list and cloudflare goes into timeout. Sadly, it seems I cannot increase the 100s timeout for cloudflare. Has anyone experienced this, and if so, have you found a solution?

Anyone else with this problem?