up
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
[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
|
||||
php_admin_value[disable_functions] = exec,passthru,shell_exec,system,proc_open,popen,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
|
||||
@@ -0,0 +1,50 @@
|
||||
[PHP]
|
||||
; Performance
|
||||
memory_limit = 256M
|
||||
max_execution_time = 300
|
||||
max_input_time = 300
|
||||
post_max_size = 100M
|
||||
upload_max_filesize = 100M
|
||||
|
||||
; Error reporting
|
||||
display_errors = Off
|
||||
display_startup_errors = Off
|
||||
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
|
||||
log_errors = On
|
||||
error_log = /var/log/php-error.log
|
||||
|
||||
; Date
|
||||
date.timezone = America/Bogota
|
||||
|
||||
; Security
|
||||
expose_php = Off
|
||||
allow_url_fopen = On
|
||||
allow_url_include = Off
|
||||
|
||||
; Session
|
||||
session.save_handler = redis
|
||||
session.save_path = "tcp://redis:6379"
|
||||
session.gc_maxlifetime = 3600
|
||||
session.cookie_httponly = 1
|
||||
session.use_strict_mode = 1
|
||||
|
||||
; OPcache (importante para performance)
|
||||
opcache.enable = 1
|
||||
opcache.enable_cli = 0
|
||||
opcache.memory_consumption = 128
|
||||
opcache.interned_strings_buffer = 8
|
||||
opcache.max_accelerated_files = 10000
|
||||
opcache.max_wasted_percentage = 5
|
||||
opcache.validate_timestamps = 0
|
||||
opcache.revalidate_freq = 0
|
||||
opcache.fast_shutdown = 1
|
||||
|
||||
; Realpath cache (mejora performance de includes)
|
||||
realpath_cache_size = 4096K
|
||||
realpath_cache_ttl = 600
|
||||
|
||||
; Output buffering
|
||||
output_buffering = 4096
|
||||
|
||||
; Redis
|
||||
extension = redis.so
|
||||
Reference in New Issue
Block a user