commit: f06a7b51e286ac80606f3e987d72c3ace796c038
parent 887a45488bed4c9d9737ebce810bdbe9f190ef3e
Author: Mark Felder <feld@feld.me>
Date: Wed, 25 Sep 2024 15:09:53 -0400
Annotate the Nginx media upload limit
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx
@@ -80,8 +80,14 @@ server {
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript application/activity+json application/atom+xml;
- # the nginx default is 1m, not enough for large media uploads
+ # Nginx media upload limitation
+ # Ensure that this value matches or exceeds your Pleroma upload limit:
+ #
+ # config :pleroma, :instance,
+ # upload_limit: 16_000_000
+ #
client_max_body_size 16m;
+
ignore_invalid_headers off;
proxy_http_version 1.1;