From db39d6b1e238f35ea1d9a9b08a6f25316ce74b8f Mon Sep 17 00:00:00 2001 From: Mario Jauvin Date: Mon, 31 Jan 2022 16:37:23 -0500 Subject: [PATCH] Set client_max_body_size in default nginx config file --- webmails/rainloop/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webmails/rainloop/Dockerfile b/webmails/rainloop/Dockerfile index 1d873f95..bea4e434 100644 --- a/webmails/rainloop/Dockerfile +++ b/webmails/rainloop/Dockerfile @@ -39,6 +39,9 @@ RUN apk add --no-cache \ && mkdir -p /var/www/rainloop \ && mkdir -p /config +# set client_max_body_size to 0 so it can be overriden in rainloop +RUN sed -i -e 's/client_max_body_size 1m/client_max_body_size 0/' /etc/nginx/nginx.conf + # nginx / PHP config files COPY config/nginx-rainloop.conf /config/nginx-rainloop.conf COPY config/php-rainloop.conf /etc/php7/php-fpm.d/rainloop.conf