From 2d83675c6435aa9b9eb422797dca29dd23b7d8d6 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Mon, 16 Aug 2021 18:06:58 +0200 Subject: [PATCH] wip --- bundles/nginx/files/nginx.conf | 1 + bundles/php/items.py | 2 +- bundles/php/metadata.py | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bundles/nginx/files/nginx.conf b/bundles/nginx/files/nginx.conf index 23c342e..804c64f 100644 --- a/bundles/nginx/files/nginx.conf +++ b/bundles/nginx/files/nginx.conf @@ -14,6 +14,7 @@ http { sendfile on; server_names_hash_bucket_size 128; tcp_nopush on; + client_max_body_size 32G; % if node.has_bundle('php'): upstream php-handler { diff --git a/bundles/php/items.py b/bundles/php/items.py index cd0679f..6d58cbb 100644 --- a/bundles/php/items.py +++ b/bundles/php/items.py @@ -2,7 +2,7 @@ version = node.metadata.get('php/version') php_ini_context = { 'num_cpus': node.metadata.get('vm/cores'), - 'post_max_size': node.metadata.get('php/post_max_size', '32G'), + 'post_max_size': node.metadata.get('php/post_max_size'), } files = { diff --git a/bundles/php/metadata.py b/bundles/php/metadata.py index f658c87..80556db 100644 --- a/bundles/php/metadata.py +++ b/bundles/php/metadata.py @@ -1,4 +1,7 @@ defaults = { + 'php': { + 'post_max_size': '32G', + }, 'apt': { 'packages': { 'php': {},