From 3f00c33a6ae222420f4cad3629e1a50b764e51c6 Mon Sep 17 00:00:00 2001 From: Hardware Date: Mon, 8 Aug 2016 08:44:17 +0200 Subject: [PATCH] fix(): increase upload limit --- nginx.conf | 1 + php-fpm.conf | 3 +++ 2 files changed, 4 insertions(+) diff --git a/nginx.conf b/nginx.conf index ab9b74e..41c6d7e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -50,6 +50,7 @@ http { listen 8080; root /flarum/app; index index.php; + client_max_body_size 50M; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log error; diff --git a/php-fpm.conf b/php-fpm.conf index df39871..0aa738a 100644 --- a/php-fpm.conf +++ b/php-fpm.conf @@ -13,3 +13,6 @@ pm.start_servers = 2 pm.min_spare_servers = 1 pm.max_spare_servers = 3 chdir = / +php_admin_value[expose_php] = Off +php_admin_value[post_max_size] = 50M +php_admin_value[upload_max_filesize] = 50M