updates that make life easier on ARM or low memory devices

This commit is contained in:
Christian Haschek
2021-11-20 23:08:47 +01:00
parent 5ecf80bce1
commit 3ee37fe3a2
2 changed files with 8 additions and 0 deletions

View File

@@ -47,6 +47,10 @@ RUN mkdir -p /run/nginx
RUN mkdir -p /var/log/nginx
RUN sed -i 's/nobody/nginx/g' /etc/php7/php-fpm.d/www.conf
# Since requests can trigger conversion, let's give the server enough time to respond
RUN sed -i "/max_execution_time/c\max_execution_time=3600" /etc/php7/php.ini
RUN sed -i "/max_input_time/c\max_input_time=3600" /etc/php7/php.ini
WORKDIR /var/www/
# Volumes to mount

View File

@@ -33,6 +33,10 @@ server {
fastcgi_index index.php;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
fastcgi_max_temp_file_size 0; # caching files to disk while uploading. this will help low-memory devices
fastcgi_read_timeout 1d; # we set the timeout to 1 day so big uploads and have enough time to be delivered
fastcgi_send_timeout 1d; # it's especially important if you want to use storage controllers like S3 or FTP
fastcgi_request_buffering off; # disabbling buffering which will send the uploaded data right to PHP
# fastcgi params
fastcgi_param DOCUMENT_ROOT $realpath_root;