From e25dc04bb8fc4454b035aa5ffb7cbc3c1bd4c9f5 Mon Sep 17 00:00:00 2001 From: Guidolin Marco Date: Wed, 22 Apr 2020 01:10:15 +0200 Subject: [PATCH] ADD: custom directive in nginx default virtualhost file in order to allow greater payloads when making POST/PUT/PATCH requests --- docker/http/nginx/virtualhosts/default.conf.example | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/http/nginx/virtualhosts/default.conf.example b/docker/http/nginx/virtualhosts/default.conf.example index a0ae663..9804b89 100755 --- a/docker/http/nginx/virtualhosts/default.conf.example +++ b/docker/http/nginx/virtualhosts/default.conf.example @@ -15,6 +15,7 @@ server { listen 80; server_name PROJECT.test; root /var/www/html/PROJECT; + client_max_body_size 30M; index index.php index.html; access_log /var/www/logs/nginx/PROJECT_access.log; @@ -61,6 +62,7 @@ server { # listen 443 ssl; # server_name PROJECT.test; # root /var/www/html/PATH/TO/PROJECT; +# client_max_body_size 30M; # # index index.php index.html; # access_log /var/www/logs/nginx/ssl_PROJECT_access.log;