Skip to content

Commit

Permalink
issue #116 Изменил конфиг fpm (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
iMega authored Oct 25, 2016
1 parent 5e13ece commit 626d35a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions entrypoint/kubikvest.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
#!/usr/bin/env sh

cat <<EOF>/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
Expand Down

0 comments on commit 626d35a

Please sign in to comment.