From 626d35aaafbf66aceaeb4564df16a1d2060e5e1e Mon Sep 17 00:00:00 2001 From: Dmitry Gavriloff Date: Tue, 25 Oct 2016 09:51:32 +0400 Subject: [PATCH] =?UTF-8?q?issue=20#116=20=D0=98=D0=B7=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=20fpm=20(#1?= =?UTF-8?q?21)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entrypoint/kubikvest.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/entrypoint/kubikvest.sh b/entrypoint/kubikvest.sh index cb25dd9..45e91d6 100644 --- a/entrypoint/kubikvest.sh +++ b/entrypoint/kubikvest.sh @@ -1,5 +1,33 @@ #!/usr/bin/env sh +cat </etc/php/php-fpm.conf +[global] +error_log = /proc/self/fd/2 +log_level = notice +emergency_restart_threshold = 10 +emergency_restart_interval = 1m +process_control_timeout = 10s +daemonize = no + +[www] +user = nobody +group = nobody +listen = 9000 +pm = dynamic +pm.max_children = 5 +pm.start_servers = 2 +pm.min_spare_servers = 1 +pm.max_spare_servers = 3 +pm.max_requests = 1000 +access.log = /proc/1/fd/2 +request_terminate_timeout = 35s +chdir = / +catch_workers_output = yes +php_admin_value[error_log] = /proc/self/fd/2 +php_admin_flag[log_errors] = on + +EOF + set -e echo "env[VK_CLIENT_ID]=$VK_CLIENT_ID" >> /etc/php/php-fpm.conf