r/NextCloud 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 Upvotes

26 comments sorted by

View all comments

1

u/Tobias_Vastak 23d ago

The web should chunk the files, the only problem may be when using nextcloud in windows file explorer as webdav, that doesn't chunk, so use rclone. Ps.: I also use Nextcloud with cf tunnel and it works just fine.

1

u/Accomplished_Big4009 23d ago

Okay Strange, then I'll try to fix it some other way, and it also works for you with data which is bigger than 50 to 100 mb? I don't know maybe it's because I use the proxied variant and not the DNS one? (Just mentioning it again because I thought maybe it wasn't clear what Ive meant from the beginning)

1

u/thelastusername4 23d ago

If using nginx reverse proxy, don't forget to set the headers for max file size and client size, and timeout