increase download by ip limit from 10 to 100 (#295)
This commit is contained in:
parent
45f2cd7de0
commit
387c0e31c0
|
@ -105,7 +105,7 @@ server {
|
|||
}
|
||||
|
||||
location ~ "^/([a-zA-Z0-9-_]{46}(/.*)?)$" {
|
||||
limit_conn downloads_by_ip 10; # ddos protection: max 10 downloads at a time
|
||||
limit_conn downloads_by_ip 100; # ddos protection: max 100 downloads at a time
|
||||
|
||||
# we need to explicitly use set directive here because $1 will contain the skylink with
|
||||
# decoded whitespaces and set will re-encode it for us before passing it to proxy_pass
|
||||
|
@ -127,7 +127,7 @@ server {
|
|||
}
|
||||
|
||||
location ~ "^/file/([a-zA-Z0-9-_]{46}(/.*)?)$" {
|
||||
limit_conn downloads_by_ip 10; # ddos protection: max 10 downloads at a time
|
||||
limit_conn downloads_by_ip 100; # ddos protection: max 100 downloads at a time
|
||||
|
||||
# we need to explicitly use set directive here because $1 will contain the skylink with
|
||||
# decoded whitespaces and set will re-encode it for us before passing it to proxy_pass
|
||||
|
|
Reference in New Issue