From 86959ab52e0d2fb1004fd1ab3db866074be32810 Mon Sep 17 00:00:00 2001 From: Chris Pressland Date: Tue, 18 Jul 2023 12:12:30 +0100 Subject: [PATCH] Add `client_max_body_size` to external NGINX config --- templates/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/nginx.conf b/templates/nginx.conf index b44cf03..7ab078b 100644 --- a/templates/nginx.conf +++ b/templates/nginx.conf @@ -35,6 +35,9 @@ server { # Hide nginx version server_tokens off; + # Upload limit, relevant for pictrs + client_max_body_size 20M; + # Enable compression for JS/CSS/HTML bundle, for improved client load times. # It might be nice to compress JSON, but leaving that out to protect against potential # compression+encryption information leak attacks like BREACH.