Nextcloud file size limit
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
client_max_body_size 15G;
|
||||
proxy_request_buffering off;
|
||||
Reference in New Issue
Block a user