[docker] fix max filesize / max uploads being counted wrong

This commit is contained in:
Shish 2024-02-27 15:06:22 +00:00 committed by Shish
parent b6cca42f73
commit e5471df505

View file

@ -20,8 +20,8 @@ $php_ini['max_file_uploads'] ??= getenv('MAX_FILE_UPLOADS') ?: "100";
$php_ini['upload_max_filesize'] ??= getenv('UPLOAD_MAX_FILESIZE') ?: '100M'; $php_ini['upload_max_filesize'] ??= getenv('UPLOAD_MAX_FILESIZE') ?: '100M';
// this one needs to be calculated for the web server itself // this one needs to be calculated for the web server itself
$php_ini['post_max_size'] ??= (string)( $php_ini['post_max_size'] ??= (string)(
ini_parse_quantity($php_ini['max_file_uploads']) * ini_parse_quantity($php_ini['upload_max_filesize']) *
intval($php_ini['upload_max_filesize']) intval($php_ini['max_file_uploads'])
); );
// Generate a config file for whatever web server we are using today // Generate a config file for whatever web server we are using today