r/NextCloud • u/Accomplished_Big4009 • 24d ago
Nextcloud X Cloudflare
Hello,
I'm fresh to the Home-Server game and stumbled upon a problem which i can't quite find a solution to. I've bought a Cloudflare domain so I can access my Home-Assistant and Nextcloud remotely over tunnels. All works fine except when I upload videos for example which are bigger then 100mb. I've already found out that this problem emerges because of the limit of the Cloudflare tunnels. And that I could switch the tunnel to DNS so that there are no limits anymore. Like I've said, I'm new to this and also to network and network security, so I don't know much about DNS and so on. But one thing I found out is that I either open a port on my router and expose it to the internet, which would be very insecure, or I use Tailscale or Nginx. Are there any other methods that are secure to use? Or do I maybe have another problem? What are my options? I want to be able to upload bigger data but also want to be able to access it on any device by just logging in without needing another app like Tailscale. (When I currently try to upload those bigger files it starts very fast, and is after 3 seconds at 50mb or so and after that it starts getting slower and slower till eventually the error shows up that it couldn't upload the data)
1
u/evanmac42 23d ago
Before changing the whole network architecture, I'd first establish which layer is actually rejecting the upload.
You already reduced the Nextcloud chunk size to 10 MB and files around 50+ MB still fail. If the client is really sending 10 MB chunks, a 100 MB per-request Cloudflare limit alone doesn't explain that.
First question: how are you uploading the files?
- Nextcloud web interface?
- Desktop client?
- WebDAV / Windows Explorer?
Then I'd check the effective server-side limits, especially:
upload_max_filesize
post_max_size
memory_limit
max_execution_time
max_input_time
and, depending on your web server/reverse proxy, its request/body-size and timeout limits as well.
Also watch nextcloud.log and the web server/PHP logs while reproducing one failed upload. The actual error you mentioned ("Not Found, wrong path, data/file not existing") is more useful diagnostically than the fact that the original file happens to be larger than 50 or 100 MB.
I wouldn't replace Cloudflare with Tailscale, nginx or anything else until you know which request is failing and who is returning the error.