From a36e424502971802910e8ec0ffa2a0ad685ed1ba Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 29 Oct 2023 08:23:47 +0100 Subject: [PATCH] cleaning --- conf/config.local.php | 2 +- conf/extra_php-fpm.conf | 4 ++-- conf/nginx.conf | 2 +- manifest.toml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/conf/config.local.php b/conf/config.local.php index ea98fdd..7f03d15 100644 --- a/conf/config.local.php +++ b/conf/config.local.php @@ -797,7 +797,7 @@ const FILE_STORAGE_QUOTA = 10*1024*1024; // Forcer le quota alloué à 10 Mo, qu * * Défaut : null (= fonctionnalité désactivée) */ -//const PDFTOTEXT_COMMAND = 'pdftotext'; +const PDFTOTEXT_COMMAND = 'mupdf'; /** * API_USER et API_PASSWORD diff --git a/conf/extra_php-fpm.conf b/conf/extra_php-fpm.conf index c27cac6..700c37c 100644 --- a/conf/extra_php-fpm.conf +++ b/conf/extra_php-fpm.conf @@ -1,4 +1,4 @@ ; Additional php.ini defines, specific to this pool of workers. -php_admin_value[upload_max_filesize] = 2M -php_admin_value[post_max_size] = 2M +php_admin_value[upload_max_filesize] = 50M +php_admin_value[post_max_size] = 50M diff --git a/conf/nginx.conf b/conf/nginx.conf index 9ca9db2..34c5fb3 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -7,7 +7,7 @@ location __PATH__/ { index index.php /_route.php; # Increase size limit - client_max_body_size 2M; + client_max_body_size 50M; try_files $uri $uri/ __PATH__/__PATH__/_route.php?$query_string; location ~ \.php$ { diff --git a/manifest.toml b/manifest.toml index 6635777..32af3ec 100644 --- a/manifest.toml +++ b/manifest.toml @@ -58,4 +58,4 @@ ram.runtime = "50M" api.protected = true [resources.apt] - packages = "sqlite3, php8.2-sqlite3, php8.2-gd, php8.2-intl, php8.2-cli, php8.2-gnupg, php8.2-mbstring" + packages = "wkhtmlopdf, mupdf-tools, sqlite3, php8.2-sqlite3, php8.2-gd, php8.2-intl, php8.2-cli, php8.2-gnupg, php8.2-mbstring, php8.2-zip"