Skip to content

Commit 4c50f93

Browse files
authored
Merge pull request #481 from linuxserver/fix-large-files-develop
Fix uploading large files
2 parents 2e9473a + 77f8176 commit 4c50f93

5 files changed

Lines changed: 13 additions & 11 deletions

File tree

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ RUN \
6868
echo 'opcache.jit_buffer_size=128M'; \
6969
} >> "/etc/php83/conf.d/00_opcache.ini" && \
7070
{ \
71-
echo 'memory_limit=512M'; \
72-
echo 'upload_max_filesize=512M'; \
73-
echo 'post_max_size=512M'; \
74-
echo 'max_input_time=300'; \
75-
echo 'max_execution_time=300'; \
71+
echo 'memory_limit=-1'; \
72+
echo 'upload_max_filesize=100G'; \
73+
echo 'post_max_size=100G'; \
74+
echo 'max_input_time=3600'; \
75+
echo 'max_execution_time=3600'; \
7676
echo 'output_buffering=0'; \
7777
echo 'always_populate_raw_post_data=-1'; \
7878
} >> "/etc/php83/conf.d/nextcloud.ini" && \

Dockerfile.aarch64

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ RUN \
6868
echo 'opcache.jit_buffer_size=128M'; \
6969
} >> "/etc/php83/conf.d/00_opcache.ini" && \
7070
{ \
71-
echo 'memory_limit=512M'; \
72-
echo 'upload_max_filesize=512M'; \
73-
echo 'post_max_size=512M'; \
74-
echo 'max_input_time=300'; \
75-
echo 'max_execution_time=300'; \
71+
echo 'memory_limit=-1'; \
72+
echo 'upload_max_filesize=100G'; \
73+
echo 'post_max_size=100G'; \
74+
echo 'max_input_time=3600'; \
75+
echo 'max_execution_time=3600'; \
7676
echo 'output_buffering=0'; \
7777
echo 'always_populate_raw_post_data=-1'; \
7878
} >> "/etc/php83/conf.d/nextcloud.ini" && \

README.md

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

320320
## Versions
321321

322+
* **09.01.25:** - Fix uploading large files. Existing users should update their nginx confs.
322323
* **24.06.24:** - Rebase to Alpine 3.20. Existing users should update their nginx confs to avoid http2 deprecation warnings.
323324
* **06.03.24:** - Rebase to Alpine 3.19 with php 8.3.
324325
* **02.01.24:** - Existing users should update: site-confs/default.conf - Cleanup default site conf.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ init_diagram: |
114114
"nextcloud:develop" <- Base Images
115115
# changelog
116116
changelogs:
117+
- {date: "09.01.25:", desc: "Fix uploading large files. Existing users should update their nginx confs."}
117118
- {date: "24.06.24:", desc: "Rebase to Alpine 3.20. Existing users should update their nginx confs to avoid http2 deprecation warnings."}
118119
- {date: "06.03.24:", desc: "Rebase to Alpine 3.19 with php 8.3."}
119120
- {date: "02.01.24:", desc: "Existing users should update: site-confs/default.conf - Cleanup default site conf."}

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)