Increase upload file size

This commit is contained in:
Konstantin Pereiaslov 2025-03-31 07:50:42 -05:00
parent 806b9193ca
commit ba3bf97499
3 changed files with 4 additions and 0 deletions

View file

@ -30,6 +30,7 @@ server {
# use any of the following two
real_ip_header CF-Connecting-IP;
#real_ip_header X-Forwarded-For;
client_max_body_size 100m;
error_page 502 503 504 /50x.html;
location = /50x.html {
@ -60,5 +61,6 @@ server {
fastcgi_intercept_errors on;
fastcgi_param SCRIPT_FILENAME /app/$fastcgi_script_name;
include fastcgi_params;
client_max_body_size 100M;
}
}

View file

@ -10,4 +10,5 @@ RUN set -ex \
&& pecl install apcu \
&& docker-php-ext-enable apcu \
&& apk del .build-deps
COPY upload_max_filesize.ini /usr/local/etc/php/conf.d/upload_max_filesize.ini
CMD ["php-fpm"]

View file

@ -0,0 +1 @@
upload_max_filesize=100M