Nextcloud file size limit

This commit is contained in:
2023-11-03 18:35:27 +01:00
parent 95a5d48a9a
commit 3cd33b3939
3 changed files with 13 additions and 4 deletions
+7
View File
@@ -30,6 +30,13 @@ services:
networks:
- nextcloud_default
- proxy-tier
environment:
SIZE_LIMIT: |
client_max_body_size 15G;
proxy_request_buffering off;
command:
/bin/sh -c "echo \"$$SIZE_LIMIT\" > /etc/nginx/conf.d/nginx_size_limit.conf; forego start -r"
nginx_acme:
image: nginxproxy/acme-companion
+4 -4
View File
@@ -44,10 +44,6 @@ http {
# could take several months.
#add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;" always;
# set max upload size
client_max_body_size 15G;
proxy_request_buffering off;
fastcgi_buffers 64 4K;
# Enable gzip but do not remove ETag headers
@@ -137,6 +133,10 @@ http {
try_files $fastcgi_script_name =404;
# set max upload size
client_max_body_size 15G;
proxy_request_buffering off;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $path_info;
+2
View File
@@ -0,0 +1,2 @@
client_max_body_size 15G;
proxy_request_buffering off;