From 79c205c2987495fcf9c172c1bb4810f79cf5fc3f Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Mon, 14 Mar 2022 17:44:08 +0100 Subject: [PATCH] limit rates --- docker/nginx/conf.d/include/location-skylink | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/nginx/conf.d/include/location-skylink b/docker/nginx/conf.d/include/location-skylink index d6ce85c1..66375d65 100644 --- a/docker/nginx/conf.d/include/location-skylink +++ b/docker/nginx/conf.d/include/location-skylink @@ -3,7 +3,7 @@ include /etc/nginx/conf.d/include/proxy-buffer; include /etc/nginx/conf.d/include/proxy-cache-downloads; include /etc/nginx/conf.d/include/track-download; -###limit_conn downloads_by_ip 100; # ddos protection: max 100 downloads at a time +limit_conn downloads_by_ip 100; # ddos protection: max 100 downloads at a time #### ensure that skylink that we pass around is base64 encoded (transform base32 encoded ones) #### this is important because we want only one format in cache keys and logs @@ -106,8 +106,8 @@ set $skylink_v2 $skylink; ### end ###} ### -###limit_rate_after 512k; -###limit_rate $limit_rate; +limit_rate_after 512k; +limit_rate $limit_rate; proxy_read_timeout 600; proxy_set_header User-Agent: Sia-Agent;