From 0d4e533cd2fe89110f6a2a8e48a89625f6483494 Mon Sep 17 00:00:00 2001 From: Michael Herrmann Date: Thu, 1 Feb 2024 18:10:49 +0100 Subject: [PATCH] Allow file uploads up to 4 GB through Docker --- run/docker/nginx.conf | 3 +++ run/vps/conf/nginx/nginx | 1 + 2 files changed, 4 insertions(+) diff --git a/run/docker/nginx.conf b/run/docker/nginx.conf index 7a292e3..a9d2ca5 100644 --- a/run/docker/nginx.conf +++ b/run/docker/nginx.conf @@ -13,6 +13,9 @@ http { server { listen 80; + # Allow file uploads up to 4 GB: + client_max_body_size 4096m; + location /static/ { alias /srv/static/; } diff --git a/run/vps/conf/nginx/nginx b/run/vps/conf/nginx/nginx index 1a3c34d..3cc8711 100644 --- a/run/vps/conf/nginx/nginx +++ b/run/vps/conf/nginx/nginx @@ -32,6 +32,7 @@ server { include includes/ssl; include includes/server-name; + # Allow file uploads up to 4 GB: client_max_body_size 4096m; access_log /var/log/nginx-access.log combined_timed;