From aba544aa2e163cabd8684b368519250d7a10cf26 Mon Sep 17 00:00:00 2001 From: Matthew Sevey Date: Mon, 8 Nov 2021 10:37:32 -0500 Subject: [PATCH 1/2] increase to 5GB limit for uploading large directories: --- docker/nginx/conf.d/server/server.api | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/nginx/conf.d/server/server.api b/docker/nginx/conf.d/server/server.api index 5fc41cb1..aef5efb4 100644 --- a/docker/nginx/conf.d/server/server.api +++ b/docker/nginx/conf.d/server/server.api @@ -142,7 +142,7 @@ location /skynet/skyfile { limit_conn upload_conn 10; limit_conn upload_conn_rl 1; - client_max_body_size 1000M; # make sure to limit the size of upload to a sane value + client_max_body_size 5000M; # make sure to limit the size of upload to a sane value # increase request timeouts proxy_read_timeout 600; @@ -196,7 +196,7 @@ location /skynet/tus { # set max upload size dynamically based on account limits rewrite_by_lua_block { -- set default limit value to 1 GB - ngx.req.set_header("SkynetMaxUploadSize", 1073741824) + ngx.req.set_header("SkynetMaxUploadSize", 5368709120) -- this block runs only when accounts are enabled if os.getenv("ACCOUNTS_ENABLED") ~= "true" then return end From c273634e2796ff16203d7c0778fff31ed290ad2a Mon Sep 17 00:00:00 2001 From: Matthew Sevey Date: Tue, 30 Nov 2021 07:43:17 -0500 Subject: [PATCH 2/2] Update docker/nginx/conf.d/server/server.api --- docker/nginx/conf.d/server/server.api | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/nginx/conf.d/server/server.api b/docker/nginx/conf.d/server/server.api index 42c78c4b..b199f984 100644 --- a/docker/nginx/conf.d/server/server.api +++ b/docker/nginx/conf.d/server/server.api @@ -201,7 +201,7 @@ location /skynet/tus { # set max upload size dynamically based on account limits rewrite_by_lua_block { - -- set default limit value to 1 GB + -- set default limit value to 5 GB ngx.req.set_header("SkynetMaxUploadSize", 5368709120) -- this block runs only when accounts are enabled