optimize
This commit is contained in:
parent
7fe695785f
commit
58fe310d58
@ -9,6 +9,7 @@ else
|
||||
fi
|
||||
|
||||
if [ -z "$(ls -A /var/www/html/apps)" ]; then
|
||||
mkdir -p /var/www/html/apps/
|
||||
cp -r /var/www/default_apps/* /var/www/html/apps/
|
||||
echo "Copied default apps to /var/www/html/apps because it was empty."
|
||||
else
|
||||
|
@ -28,7 +28,7 @@ RUN mv /var/www/html/config/config.sample.php /var/www/default_config.sample.php
|
||||
|
||||
# copy php config
|
||||
COPY php.ini /usr/local/etc/php/php.ini
|
||||
|
||||
COPY php-fpm.conf /usr/local/etc/php-fpm.conf
|
||||
# copy and setup entrypoint
|
||||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||
|
@ -30,7 +30,7 @@ server {
|
||||
# set max upload size and increase upload timeout:
|
||||
client_max_body_size 4G;
|
||||
client_body_timeout 600s;
|
||||
fastcgi_buffers 64 4K;
|
||||
fastcgi_buffers 64 16K;
|
||||
fastcgi_read_timeout 300;
|
||||
fastcgi_send_timeout 300;
|
||||
fastcgi_connect_timeout 300;
|
||||
|
16
.build/php-fpm.conf
Normal file
16
.build/php-fpm.conf
Normal file
@ -0,0 +1,16 @@
|
||||
# Increase max execution time
|
||||
max_execution_time = 300
|
||||
|
||||
# Increase process manager settings
|
||||
pm = dynamic
|
||||
pm.max_children = 50
|
||||
pm.start_servers = 5
|
||||
pm.min_spare_servers = 5
|
||||
pm.max_spare_servers = 35
|
||||
pm.max_requests = 500
|
||||
|
||||
# Increase request timeout
|
||||
request_terminate_timeout = 300s
|
||||
|
||||
[global]
|
||||
include=etc/php-fpm.d/*.conf
|
1816
.build/php.ini
1816
.build/php.ini
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user