nginx-proxy-manager
nginx-proxy-manager copied to clipboard
Synology Nas hitting HTTP Error 413 When Trying to Upload Videos
Some small videos upload fine, all photos upload fine, but larger videos (30+ seconds) hit the HTTP Error 413, and halt my backup completely (Synology Photos). This seems to be an NginxProxyManager max file size or data stream type of error, how can I fix this?
Maxbe a bit late.
Edit your Proxy Host config, then under Advanced add client_max_body_size 50M;
If this doesn't work:
Add a location under Custom Locations. Set your location to your url where you upload the files.
For my usecase it was /api/uploads
( I dont know what the synology photos is, but you got the http error 413, the url which is shown there should be entered there ) then use the same forward hostname as you have under details and the in my case /api/uploads
like foo.bar/api/uploads and set below client_max_body_size 50M;
Did you disable any Cloudflare caching for your nas subdomain?
Did you disable any Cloudflare caching for your nas subdomain?
No I didn't, I didn't know I could do that! How do I disable this? Would this ultimately fix the upload issue?
It fixed a video upload issue for me on Synology Photo. Apparently Cloudflare has issues uploading large video files through a proxied/cached subnet for free tier accounts.
Assuming you have set up your domain on Cloudflare and created a CNAME subdomain record for your Synology like "nas.yourdomain.com", log into Cloudflare, select your domain, go to DNS settings, edit the nas CNAME record, change the "Proxied" switch to "DNS only" and save. This should make the orange cloud icon gray.
Also, if you have a Plex subdomain on CF, make it "DNS only" rather than proxied or they could cancel your free account if the monthly bandwidth gets too huge.
It fixed a video upload issue for me on Synology Photo. Apparently Cloudflare has issues uploading large video files through a proxied/cached subnet for free tier accounts.
Assuming you have set up your domain on Cloudflare and created a CNAME subdomain record for your Synology like "nas.yourdomain.com", log into Cloudflare, select your domain, go to DNS settings, edit the nas CNAME record, change the "Proxied" switch to "DNS only" and save. This should make the orange cloud icon gray.
Also, if you have a Plex subdomain on CF, make it "DNS only" rather than proxied or they could cancel your free account if the monthly bandwidth gets too huge.
This creates a security hole in my home lab, what I did alternatively was use quick connect and used that for my photos backup and all that, then keep my cname open for web access with https to view setting n stuff
Issue is now considered stale. If you want to keep it open, please comment :+1: