[www]
user = www
group = www
listen = 9000
listen.owner = www
listen.group = www

pm = dynamic
pm.max_children = 50
pm.start_servers = 10
pm.min_spare_servers = 5
pm.max_spare_servers = 20
pm.max_requests = 500
pm.status_path = /fpm-status

; Logs
access.log = /var/log/php-fpm-access.log
catch_workers_output = yes
php_admin_flag[log_errors] = on
php_admin_value[error_log] = /var/log/php-fpm-error.log

; Security
; Nota: curl_exec y curl_multi_exec son necesarios para WhatsApp API
; shell_exec habilitado para conversión de medios con ffmpeg
php_admin_value[disable_functions] = passthru,system,parse_ini_file,show_source

; Performance
request_terminate_timeout = 300s
request_slowlog_timeout = 10s
slowlog = /var/log/php-fpm-slow.log

; Environment variables
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp
