Compare commits

...
This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.

4 Commits

Author SHA1 Message Date
Ivaylo Novakov ae524bc364
Limit downloads to 3 per IP. 2021-12-08 19:19:57 +01:00
Ivaylo Novakov 26831e7a3e
Limit downloads to 5 per IP. 2021-12-08 19:15:23 +01:00
Ivaylo Novakov 1e16caeaeb
Limit downloads to 10 per IP. 2021-12-08 19:15:00 +01:00
Ivaylo Novakov 9d8d31feff
Limit downloads to 20 per IP. 2021-12-08 19:08:18 +01:00
1 changed files with 8 additions and 8 deletions

View File

@ -9,7 +9,7 @@ if ($request_method = PURGE) {
return 462;
}
limit_conn downloads_by_ip 100; # ddos protection: max 100 downloads at a time
limit_conn downloads_by_ip 3; # 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