From 3a81a9a83f873e9c35e1907cffdbae48aa1ddaf4 Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Fri, 22 Sep 2017 18:41:51 +0200 Subject: [PATCH] Adjust nginx and PHP-FPM upload size and execution time settings --- conf/nginx.conf | 2 +- conf/php-fpm.ini | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 conf/php-fpm.ini diff --git a/conf/nginx.conf b/conf/nginx.conf index 6bc48d6..f997658 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,6 +1,6 @@ location __PATH__ { alias __FINALPATH__/; - client_max_body_size 10G; + client_max_body_size 1G; index index.php; default_type text/html; location ~ [^/]\.php(/|$) { diff --git a/conf/php-fpm.ini b/conf/php-fpm.ini new file mode 100644 index 0000000..c3d888a --- /dev/null +++ b/conf/php-fpm.ini @@ -0,0 +1,7 @@ +; Common values to change to increase file upload limit +upload_max_filesize = 1G +post_max_size = 1G + +; Other common parameters +max_execution_time = 600 +max_input_time = 300