Merge pull request #1364 from SkynetLabs/sevey/update-default-limit

Update default limit for Uploads
This commit is contained in:
Ivaylo Novakov 2021-12-17 15:32:33 +01:00 committed by GitHub
commit b37008b497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -180,7 +180,7 @@ location /skynet/skyfile {
limit_conn upload_conn 5; limit_conn upload_conn 5;
limit_conn upload_conn_rl 1; 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 # increase request timeouts
proxy_read_timeout 600; proxy_read_timeout 600;
@ -239,8 +239,8 @@ location /skynet/tus {
# set max upload size dynamically based on account limits # set max upload size dynamically based on account limits
rewrite_by_lua_block { rewrite_by_lua_block {
-- set default limit value to 1 GB -- set default limit value to 5 GB
ngx.req.set_header("SkynetMaxUploadSize", 1073741824) ngx.req.set_header("SkynetMaxUploadSize", 5368709120)
-- this block runs only when accounts are enabled -- this block runs only when accounts are enabled
if os.getenv("ACCOUNTS_ENABLED") ~= "true" then return end if os.getenv("ACCOUNTS_ENABLED") ~= "true" then return end