mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2025-12-10 18:57:00 -06:00
add php tuning for batch uploads
This commit is contained in:
parent
d7d29ebeec
commit
3b47d25ceb
@ -125,6 +125,15 @@ $STD php artisan koel:init --no-assets --no-interaction
|
||||
chown -R www-data:www-data /opt/koel
|
||||
msg_ok "Installed Koel"
|
||||
|
||||
msg_info "Tuning PHP-FPM"
|
||||
PHP_FPM_CONF="/etc/php/8.4/fpm/pool.d/www.conf"
|
||||
sed -i 's/^pm.max_children = .*/pm.max_children = 15/' "$PHP_FPM_CONF"
|
||||
sed -i 's/^pm.start_servers = .*/pm.start_servers = 4/' "$PHP_FPM_CONF"
|
||||
sed -i 's/^pm.min_spare_servers = .*/pm.min_spare_servers = 2/' "$PHP_FPM_CONF"
|
||||
sed -i 's/^pm.max_spare_servers = .*/pm.max_spare_servers = 8/' "$PHP_FPM_CONF"
|
||||
$STD systemctl restart php8.4-fpm
|
||||
msg_ok "Tuned PHP-FPM"
|
||||
|
||||
msg_info "Configuring Nginx"
|
||||
cat <<'EOF' >/etc/nginx/sites-available/koel
|
||||
server {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user