mirror of
https://github.com/projectsend/projectsend.git
synced 2026-10-14 08:41:45 +00:00
29 lines
986 B
Plaintext
29 lines
986 B
Plaintext
; Overrides only — loaded after the base image's www.conf/docker.conf (see
|
|
; /usr/local/etc/php-fpm.d/*.conf) thanks to the zz- prefix it's copied
|
|
; under, same convention the base image itself uses for docker.conf vs
|
|
; zz-docker.conf.
|
|
;
|
|
; `dynamic` rather than the dev config's `ondemand`: an official image runs
|
|
; unattended and should keep a few workers warm rather than paying process
|
|
; startup on the first request after an idle period. The ceiling still
|
|
; matters — nothing else here caps how much RAM the pool can claim, and
|
|
; this image is expected to run on small VPSes.
|
|
[www]
|
|
pm = dynamic
|
|
pm.max_children = 10
|
|
pm.start_servers = 2
|
|
pm.min_spare_servers = 2
|
|
pm.max_spare_servers = 4
|
|
pm.max_requests = 500
|
|
|
|
; php-fpm's master must stay root to fork workers as www-data (it cannot
|
|
; reopen its error_log as non-root at startup); the workers themselves do
|
|
; not.
|
|
user = www-data
|
|
group = www-data
|
|
|
|
catch_workers_output = yes
|
|
decorate_workers_output = no
|
|
|
|
access.log = /dev/null
|