Skip to content

Commit d607b5e

Browse files
authored
Merge pull request #480 from linuxserver/fix-large-files
Fix uploading large files
2 parents 021caf5 + b4ff591 commit d607b5e

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ RUN \
7272
echo 'opcache.jit_buffer_size=128M'; \
7373
} >> "/etc/php83/conf.d/00_opcache.ini" && \
7474
{ \
75-
echo 'memory_limit=512M'; \
76-
echo 'upload_max_filesize=512M'; \
77-
echo 'post_max_size=512M'; \
78-
echo 'max_input_time=300'; \
79-
echo 'max_execution_time=300'; \
75+
echo 'memory_limit=-1'; \
76+
echo 'upload_max_filesize=100G'; \
77+
echo 'post_max_size=100G'; \
78+
echo 'max_input_time=3600'; \
79+
echo 'max_execution_time=3600'; \
8080
echo 'output_buffering=0'; \
8181
echo 'always_populate_raw_post_data=-1'; \
8282
} >> "/etc/php83/conf.d/nextcloud.ini" && \

Dockerfile.aarch64

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ RUN \
7272
echo 'opcache.jit_buffer_size=128M'; \
7373
} >> "/etc/php83/conf.d/00_opcache.ini" && \
7474
{ \
75-
echo 'memory_limit=512M'; \
76-
echo 'upload_max_filesize=512M'; \
77-
echo 'post_max_size=512M'; \
78-
echo 'max_input_time=300'; \
79-
echo 'max_execution_time=300'; \
75+
echo 'memory_limit=-1'; \
76+
echo 'upload_max_filesize=100G'; \
77+
echo 'post_max_size=100G'; \
78+
echo 'max_input_time=3600'; \
79+
echo 'max_execution_time=3600'; \
8080
echo 'output_buffering=0'; \
8181
echo 'always_populate_raw_post_data=-1'; \
8282
} >> "/etc/php83/conf.d/nextcloud.ini" && \

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
350350

351351
## Versions
352352

353+
* **09.01.25:** - Fix uploading large files. Existing users should update their nginx confs.
353354
* **09.07.24:** - Add `previous` tag for n-1 releases.
354355
* **24.06.24:** - Rebase to Alpine 3.20. Existing users should update their nginx confs to avoid http2 deprecation warnings.
355356
* **19.05.24:** - Added util-linux package required for taskset.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ init_diagram: |
145145
"nextcloud:latest" <- Base Images
146146
# changelog
147147
changelogs:
148+
- {date: "09.01.25:", desc: "Fix uploading large files. Existing users should update their nginx confs."}
148149
- {date: "09.07.24:", desc: "Add `previous` tag for n-1 releases."}
149150
- {date: "24.06.24:", desc: "Rebase to Alpine 3.20. Existing users should update their nginx confs to avoid http2 deprecation warnings."}
150151
- {date: "19.05.24:", desc: "Added util-linux package required for taskset."}

root/defaults/nginx/site-confs/default.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ server {
2525
# https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html#nextcloud-in-the-webroot-of-nginx
2626

2727
# set max upload size and increase upload timeout:
28-
client_max_body_size 512M;
28+
client_max_body_size 0;
2929
client_body_timeout 300s;
3030
fastcgi_buffers 64 4K;
3131

0 commit comments

Comments
 (0)