From 45c0c4fa555481b5f5ffa8d8c4a0c2b7caa0143f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 15 Jan 2023 17:28:28 +0100 Subject: [PATCH] add max body size --- conf/nginx_no_php.conf | 3 +++ conf/nginx_with_php.conf | 3 +++ 2 files changed, 6 insertions(+) diff --git a/conf/nginx_no_php.conf b/conf/nginx_no_php.conf index 39a4573..e0eacb3 100644 --- a/conf/nginx_no_php.conf +++ b/conf/nginx_no_php.conf @@ -4,6 +4,9 @@ location __PATH__/ { # Path to source alias __FINALPATH__/www/; + # Common parameter to increase upload size limit in conjunction with dedicated PHP-FPM file + #client_max_body_size 1G; + # Default indexes and catch-all index index.html index.php; try_files $uri $uri/ __PATH__/index.php?$args; diff --git a/conf/nginx_with_php.conf b/conf/nginx_with_php.conf index 723df1b..a2367c5 100644 --- a/conf/nginx_with_php.conf +++ b/conf/nginx_with_php.conf @@ -4,6 +4,9 @@ location __PATH__/ { # Path to source alias __FINALPATH__/www/; + # Common parameter to increase upload size limit in conjunction with dedicated PHP-FPM file + #client_max_body_size 1G; + # Default indexes and catch-all index index.html index.php; try_files $uri $uri/ __PATH__/index.php?$args;