-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathfpm.conf
42 lines (33 loc) · 951 Bytes
/
fpm.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[global]
daemonize = no
log_limit = 65536
error_log = /dev/stderr
emergency_restart_threshold = 10
emergency_restart_interval = 1m
log_level = warning
; Timeout after receiving termination signal, to serve in-process requests.
process_control_timeout = 10s
[www]
; use TCP socket.
listen = 9000
pm = dynamic
pm.start_servers = 2
pm.min_spare_servers = 2
pm.max_spare_servers = 2
pm.max_children = 50
; do not clear environment variables sent to the PHP Script, pass OS env vars to PHP. (Important for K8S)
clear_env = no
; Disable access logs in fpm's stdout/err as it will be in nginx access logs.
;access.log = /dev/stderr
; Run as www-data
; user = www-data
; group = www-data
; For Healthcheck
ping.path = /ping
pm.status_path = /status
; Ensure worker stdout and stderr are sent to the main error log.
; do not
php_admin_flag[log_errors] = on
php_admin_flag[fastcgi.logging] = off
catch_workers_output = yes
decorate_workers_output = no