Limit downloads to 10 per IP.

This commit is contained in:
Ivaylo Novakov 2021-12-08 19:15:00 +01:00
parent 9d8d31feff
commit 1e16caeaeb
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ if ($request_method = PURGE) {
return 462; return 462;
} }
limit_conn downloads_by_ip 20; # ddos protection: max 100 downloads at a time limit_conn downloads_by_ip 10; # ddos protection: max 100 downloads at a time
# ensure that skylink that we pass around is base64 encoded (transform base32 encoded ones) # 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 # this is important because we want only one format in cache keys and logs