Compare commits

..

1 Commits

Author SHA1 Message Date
p4u1 394b68a920 fix: ensure large uploads work 2026-06-03 18:21:47 +02:00
5 changed files with 8 additions and 14 deletions
-5
View File
@@ -23,11 +23,6 @@ SECRET_ADMIN_PASSWORD_VERSION=v1
EXTRA_VOLUME=/dev/null:/tmp/.dummy
# Use a local bind mount for nextdata instead of a named volume.
# The directory must exist on the host before deploying.
# COMPOSE_FILE="$COMPOSE_FILE:compose.local-data.yml"
# NEXTDATA_PATH=/path/on/host/nextdata
PHP_MEMORY_LIMIT=1G
PHP_UPLOAD_LIMIT=512M
# fpm-tune, see: https://spot13.com/pmcalculator/
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/bash
export FPM_TUNE_VERSION=v5
export NGINX_CONF_VERSION=v8
export NGINX_CONF_VERSION=v8b
export MY_CNF_VERSION=v6
export ENTRYPOINT_VERSION=v3
export ENTRYPOINT_WHITEBOARD_VERSION=v1
-7
View File
@@ -1,7 +0,0 @@
volumes:
nextdata:
driver: local
driver_opts:
type: none
o: bind
device: ${NEXTDATA_PATH}
+2
View File
@@ -14,6 +14,7 @@ services:
- STACK_NAME
- HSTS_ENABLED
- HSTS_PRELOAD
- PHP_UPLOAD_LIMIT=${PHP_UPLOAD_LIMIT:-512M}
volumes:
- nextcloud:/var/www/html/
- nextapps:/var/www/html/custom_apps:cached
@@ -37,6 +38,7 @@ services:
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
- "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.permanent=true"
- "traefik.http.middlewares.${STACK_NAME}-buffering.buffering.maxRequestBodyBytes=0"
- "caddy=${DOMAIN}"
- "caddy.reverse_proxy={{upstreams 80}}"
- "caddy.tls.on_demand="
+5 -1
View File
@@ -54,7 +54,7 @@ http {
{{ end }}
# set max upload size
client_max_body_size 512M;
client_max_body_size {{ env "PHP_UPLOAD_LIMIT" }} ;
fastcgi_buffers 64 4K;
# Enable gzip but do not remove ETag headers
@@ -162,6 +162,10 @@ http {
fastcgi_intercept_errors on;
fastcgi_request_buffering off;
fastcgi_read_timeout 3600s;
fastcgi_send_timeout 3600s;
fastcgi_connect_timeout 60s;
}
location ~ \.(?:css|js|svg|gif)$ {