Fix: increase PHP and Nginx upload limit to 512M for backup restore and enhance upload error reporting

This commit is contained in:
sorcier committed 2026-11-02 13:52:15 +01:00
1 parent a09f13de71
commit c54a8e0c66
5 files changed
+59 -3

No files matched your search

+22
View File
@@ -200,6 +200,28 @@ EOF_OVERRIDE
done
systemctl daemon-reload
# Configuration des limites d'upload PHP (Restauration d'archives 512 Mo & Sons volumineux)
for php_dir in /etc/php/*; do
if [ -d "$php_dir/fpm/conf.d" ]; then
cat << 'EOF_PHP' > "$php_dir/fpm/conf.d/99-nexus.ini"
upload_max_filesize = 512M
post_max_size = 512M
memory_limit = 512M
max_execution_time = 300
max_input_time = 300
EOF_PHP
fi
if [ -d "$php_dir/cli/conf.d" ]; then
cat << 'EOF_PHP' > "$php_dir/cli/conf.d/99-nexus.ini"
upload_max_filesize = 512M
post_max_size = 512M
memory_limit = 512M
max_execution_time = 300
max_input_time = 300
EOF_PHP
fi
done
# 5. Configuration d'Asterisk & Certificats TLS de secours
echo -e "${C_GREEN}[4/8] Configuration du moteur Asterisk PJSIP & AMI...${C_RESET}"