From 6be9fcd271189a4f3f630339ead10443a7e754ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 1 Jun 2021 14:34:58 +0200 Subject: [PATCH] Testing (#11) * Post max size --- README.md | 2 +- README_fr.md | 2 +- conf/nginx.conf | 2 ++ conf/php-fpm.conf | 4 ++-- manifest.json | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 81bb283..28d8004 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Simple, Fast, Secure, Flat-File CMS -**Shipped version:** 3.13.1~ynh4 +**Shipped version:** 3.13.1~ynh5 **Demo:** https://demo.example.com diff --git a/README_fr.md b/README_fr.md index 2e91aab..c6783e1 100644 --- a/README_fr.md +++ b/README_fr.md @@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour CMS simple, rapide, sécurisé et à fichier plat -**Version incluse :** 3.13.1~ynh4 +**Version incluse :** 3.13.1~ynh5 **Démo :** https://demo.example.com diff --git a/conf/nginx.conf b/conf/nginx.conf index 0db689a..769b154 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -11,6 +11,8 @@ location __PATH__/ { index index.php; + client_max_body_size 10M; + if (!-e $request_filename) { rewrite ^ __PATH__/index.php last; } #try_files $uri $uri/ /bludit//bludit/index.php?$args; diff --git a/conf/php-fpm.conf b/conf/php-fpm.conf index ab1a471..340380b 100644 --- a/conf/php-fpm.conf +++ b/conf/php-fpm.conf @@ -419,8 +419,8 @@ chdir = __FINALPATH__ ;php_admin_value[memory_limit] = 32M ; Common values to change to increase file upload limit -; php_admin_value[upload_max_filesize] = 50M -; php_admin_value[post_max_size] = 50M +php_admin_value[upload_max_filesize] = 10M +php_admin_value[post_max_size] = 10M ; php_admin_flag[mail.add_x_header] = Off ; Other common parameters diff --git a/manifest.json b/manifest.json index c941523..5477b9b 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Simple, Fast, Secure, Flat-File CMS", "fr": "CMS simple, rapide, sécurisé et à fichier plat" }, - "version": "3.13.1~ynh4", + "version": "3.13.1~ynh5", "url": "www.bludit.com", "upstream": { "license": "MIT",