increase to 5GB limit for uploading large directories:

This commit is contained in:
Matthew Sevey 2021-11-08 10:37:32 -05:00
parent d4eb04f702
commit aba544aa2e
No known key found for this signature in database
GPG Key ID: 9ADDD344F13057F6
1 changed files with 2 additions and 2 deletions

View File

@ -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