mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-12 19:26:21 +00:00
updates that make life easier on ARM or low memory devices
This commit is contained in:
@@ -47,6 +47,10 @@ RUN mkdir -p /run/nginx
|
|||||||
RUN mkdir -p /var/log/nginx
|
RUN mkdir -p /var/log/nginx
|
||||||
RUN sed -i 's/nobody/nginx/g' /etc/php7/php-fpm.d/www.conf
|
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/
|
WORKDIR /var/www/
|
||||||
|
|
||||||
# Volumes to mount
|
# Volumes to mount
|
||||||
|
|||||||
@@ -33,6 +33,10 @@ server {
|
|||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
fastcgi_buffers 8 16k;
|
fastcgi_buffers 8 16k;
|
||||||
fastcgi_buffer_size 32k;
|
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 params
|
||||||
fastcgi_param DOCUMENT_ROOT $realpath_root;
|
fastcgi_param DOCUMENT_ROOT $realpath_root;
|
||||||
|
|||||||
Reference in New Issue
Block a user