diff --git a/docker/nginx/conf.d/server/server.api b/docker/nginx/conf.d/server/server.api index 19ecea6a..c959dd73 100644 --- a/docker/nginx/conf.d/server/server.api +++ b/docker/nginx/conf.d/server/server.api @@ -177,13 +177,13 @@ location /skynet/skyfile { limit_req zone=uploads_by_ip burst=10 nodelay; limit_req zone=uploads_by_ip_throttled; - limit_req zone=downloads_by_ip burst=10 nodelay; + limit_req zone=downloads_by_ip burst=20 nodelay; limit_req zone=downloads_by_ip_throttled; limit_conn upload_conn 5; limit_conn upload_conn_rl 1; - limit_conn download_conn 10; + limit_conn download_conn 20; limit_conn download_conn_rl 1; client_max_body_size 1000M; # make sure to limit the size of upload to a sane value @@ -221,13 +221,13 @@ location /skynet/tus { limit_req zone=uploads_by_ip burst=10 nodelay; limit_req zone=uploads_by_ip_throttled; - limit_req zone=downloads_by_ip burst=10 nodelay; + limit_req zone=downloads_by_ip burst=20 nodelay; limit_req zone=downloads_by_ip_throttled; limit_conn upload_conn 3; limit_conn upload_conn_rl 1; - limit_conn download_conn 10; + limit_conn download_conn 20; limit_conn download_conn_rl 1; # TUS chunks size is 40M + leaving 10M of breathing room @@ -298,13 +298,13 @@ location /skynet/pin { limit_req zone=uploads_by_ip burst=10 nodelay; limit_req zone=uploads_by_ip_throttled; - limit_req zone=downloads_by_ip burst=10 nodelay; + limit_req zone=downloads_by_ip burst=20 nodelay; limit_req zone=downloads_by_ip_throttled; limit_conn upload_conn 3; limit_conn upload_conn_rl 1; - limit_conn download_conn 10; + limit_conn download_conn 20; limit_conn download_conn_rl 1; proxy_set_header User-Agent: Sia-Agent; diff --git a/docker/nginx/nginx.conf b/docker/nginx/nginx.conf index 5db0a05d..f61a549e 100644 --- a/docker/nginx/nginx.conf +++ b/docker/nginx/nginx.conf @@ -99,8 +99,8 @@ http { limit_req_zone $binary_remote_addr zone=uploads_by_ip:10m rate=10r/s; limit_req_zone $limit_key zone=uploads_by_ip_throttled:10m rate=10r/m; - limit_req_zone $binary_remote_addr zone=downloads_by_ip:10m rate=10r/s; - limit_req_zone $limit_key zone=downloads_by_ip_throttled:10m rate=10r/m; + limit_req_zone $binary_remote_addr zone=downloads_by_ip:10m rate=20r/s; + limit_req_zone $limit_key zone=downloads_by_ip_throttled:10m rate=20r/m; limit_req_zone $binary_remote_addr zone=registry_access_by_ip:10m rate=60r/m; limit_req_zone $limit_key zone=registry_access_by_ip_throttled:10m rate=20r/m;