From ba8f6ec5d3d1f661e7df4f153a7e1490b0606ca9 Mon Sep 17 00:00:00 2001 From: Marvin Steadfast Date: Sat, 5 Nov 2016 15:10:43 +0100 Subject: [PATCH] limit upload size to 100M --- root/etc/nginx/nginx.conf | 2 +- root/etc/php/php.ini | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/root/etc/nginx/nginx.conf b/root/etc/nginx/nginx.conf index 82a88a8..6186c99 100644 --- a/root/etc/nginx/nginx.conf +++ b/root/etc/nginx/nginx.conf @@ -23,7 +23,7 @@ http { gzip on; gzip_disable "msie6"; open_file_cache max=100; - client_max_body_size 50M; + client_max_body_size 100M; upstream php-upstream { diff --git a/root/etc/php/php.ini b/root/etc/php/php.ini index 4c53a7f..083fd2f 100644 --- a/root/etc/php/php.ini +++ b/root/etc/php/php.ini @@ -670,7 +670,7 @@ auto_globals_jit = On ; Its value may be 0 to disable the limit. It is ignored if POST data reading ; is disabled through enable_post_data_reading. ; http://php.net/post-max-size -post_max_size = 20G +post_max_size = 100M ; Automatically add files before PHP document. ; http://php.net/auto-prepend-file @@ -802,7 +802,7 @@ upload_tmp_dir = /tmp/ ; Maximum allowed size for uploaded files. ; http://php.net/upload-max-filesize -upload_max_filesize = 20G +upload_max_filesize = 100M ; Maximum number of files that can be uploaded via a single request max_file_uploads = 20