413 Content Too Large on video upload (inner nginx client_max_body_size seems too low?)
-
Hi folks

Iโm running the Cloudron Postiz app and Iโm blocked uploading videos because Postiz returns:
413 Content Too Large on:
POST /api/media/upload-serverIn the browser Network panel I see the response header
server: nginxand the upload fails around ~5MB.I confirmed with an internal test that this is not Cloudronโs outer proxy, but the nginx inside the Postiz container:
# created a 6MB file... dd if=/dev/zero of=/tmp/6mb.bin bs=1M count=6 # called the Postiz nginx directly (inside the container) curl -sS -o /dev/null -w "%{http_code}\n" \ -F "file=@/tmp/6mb.bin" \ http://127.0.0.1:5000/api/media/upload-server # => 413The nginx vhost used by the container is:
/etc/nginx/sites-enabled/postiz.confand currently it contains no
client_max_body_size directive(also confirmed vianginx -T | grep client_max_body_sizeโ no output). Addingclient_max_body_sizewould be the standard nginx fix (Postiz docs also suggest it for 413s).However, because this is a Cloudron app, I canโt apply persistent patches to the packaged nginx config within the container, right? (Am I missing something here?).
Request/proposal:
Could the Cloudron Postiz package include a higher client_max_body_size (or make it configurable), ideally scoped to the API location block?Example:
location /api/ { client_max_body_size 200M; # or 1G proxy_pass http://localhost:3000/; ... }Happy to test a package build or PR if you point me to the exact config template file used to generate /etc/nginx/sites-enabled/postiz.conf.
Thanks!

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better ๐
Register Login