diff --git a/abra.sh b/abra.sh index f4b12f2..6210ace 100644 --- a/abra.sh +++ b/abra.sh @@ -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 diff --git a/compose.yml b/compose.yml index 5abf1de..a46b8f5 100644 --- a/compose.yml +++ b/compose.yml @@ -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=" diff --git a/nginx.conf.tmpl b/nginx.conf.tmpl index fc82a44..4f1e1ce 100644 --- a/nginx.conf.tmpl +++ b/nginx.conf.tmpl @@ -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)$ {