From 22793c51139af03ff8a852116895cb7fd84ca91f Mon Sep 17 00:00:00 2001 From: EwelinaSkrzypacz Date: Tue, 29 Oct 2024 12:25:51 +0100 Subject: [PATCH 1/2] - wip --- environment/dev/app/nginx.conf | 2 ++ environment/dev/app/php.ini | 2 ++ environment/prod/app/nginx.conf | 2 ++ environment/prod/app/php.ini | 2 ++ 4 files changed, 8 insertions(+) diff --git a/environment/dev/app/nginx.conf b/environment/dev/app/nginx.conf index 3edc4312..55e8bd6c 100644 --- a/environment/dev/app/nginx.conf +++ b/environment/dev/app/nginx.conf @@ -40,5 +40,7 @@ http { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } + + client_max_body_size 3M; } } diff --git a/environment/dev/app/php.ini b/environment/dev/app/php.ini index 8ffeea58..79fcba95 100644 --- a/environment/dev/app/php.ini +++ b/environment/dev/app/php.ini @@ -1,5 +1,7 @@ [PHP] memory_limit = 256M +upload_max_filesize = 3M +post_max_size = 3M [xdebug] xdebug.client_host=xdebug://gateway diff --git a/environment/prod/app/nginx.conf b/environment/prod/app/nginx.conf index c026d098..494db431 100644 --- a/environment/prod/app/nginx.conf +++ b/environment/prod/app/nginx.conf @@ -40,5 +40,7 @@ http { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } + + client_max_body_size 3M; } } diff --git a/environment/prod/app/php.ini b/environment/prod/app/php.ini index 3b742482..9f1e0d1d 100644 --- a/environment/prod/app/php.ini +++ b/environment/prod/app/php.ini @@ -1,5 +1,7 @@ [PHP] memory_limit = 256M +upload_max_filesize = 3M +post_max_size = 3M [opcache] opcache.enable = 1 From 1807a7719fd51a9099cc46a5e16ede1abfeee2cb Mon Sep 17 00:00:00 2001 From: EwelinaSkrzypacz Date: Wed, 30 Oct 2024 06:12:53 +0100 Subject: [PATCH 2/2] - cr fixes --- environment/dev/app/nginx.conf | 2 +- environment/dev/app/php.ini | 2 -- environment/prod/app/nginx.conf | 2 +- environment/prod/app/php.ini | 2 -- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/environment/dev/app/nginx.conf b/environment/dev/app/nginx.conf index 55e8bd6c..c52336f9 100644 --- a/environment/dev/app/nginx.conf +++ b/environment/dev/app/nginx.conf @@ -41,6 +41,6 @@ http { include fastcgi_params; } - client_max_body_size 3M; + client_max_body_size 2M; } } diff --git a/environment/dev/app/php.ini b/environment/dev/app/php.ini index 79fcba95..8ffeea58 100644 --- a/environment/dev/app/php.ini +++ b/environment/dev/app/php.ini @@ -1,7 +1,5 @@ [PHP] memory_limit = 256M -upload_max_filesize = 3M -post_max_size = 3M [xdebug] xdebug.client_host=xdebug://gateway diff --git a/environment/prod/app/nginx.conf b/environment/prod/app/nginx.conf index 494db431..46c52ae8 100644 --- a/environment/prod/app/nginx.conf +++ b/environment/prod/app/nginx.conf @@ -41,6 +41,6 @@ http { include fastcgi_params; } - client_max_body_size 3M; + client_max_body_size 2M; } } diff --git a/environment/prod/app/php.ini b/environment/prod/app/php.ini index 9f1e0d1d..3b742482 100644 --- a/environment/prod/app/php.ini +++ b/environment/prod/app/php.ini @@ -1,7 +1,5 @@ [PHP] memory_limit = 256M -upload_max_filesize = 3M -post_max_size = 3M [opcache] opcache.enable = 1