Try to fix nginx
This commit is contained in:
parent
82e85f829f
commit
03fecc8cd1
|
@ -9,7 +9,7 @@ if ($request_method = PURGE) {
|
||||||
return 462;
|
return 462;
|
||||||
}
|
}
|
||||||
|
|
||||||
limit_conn downloads_by_ip 100; # ddos protection: max 100 downloads at a time
|
limit_conn downloads_by_ip 20; # 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
|
||||||
|
|
|
@ -177,7 +177,6 @@ location /skynet/skyfile {
|
||||||
limit_req zone=uploads_by_ip burst=10 nodelay;
|
limit_req zone=uploads_by_ip burst=10 nodelay;
|
||||||
limit_req zone=uploads_by_ip_throttled;
|
limit_req zone=uploads_by_ip_throttled;
|
||||||
|
|
||||||
limit_req zone=downloads_by_ip burst=20 nodelay;
|
|
||||||
limit_req zone=downloads_by_ip_throttled;
|
limit_req zone=downloads_by_ip_throttled;
|
||||||
|
|
||||||
limit_conn upload_conn 5;
|
limit_conn upload_conn 5;
|
||||||
|
@ -221,7 +220,6 @@ location /skynet/tus {
|
||||||
limit_req zone=uploads_by_ip burst=10 nodelay;
|
limit_req zone=uploads_by_ip burst=10 nodelay;
|
||||||
limit_req zone=uploads_by_ip_throttled;
|
limit_req zone=uploads_by_ip_throttled;
|
||||||
|
|
||||||
limit_req zone=downloads_by_ip burst=20 nodelay;
|
|
||||||
limit_req zone=downloads_by_ip_throttled;
|
limit_req zone=downloads_by_ip_throttled;
|
||||||
|
|
||||||
limit_conn upload_conn 3;
|
limit_conn upload_conn 3;
|
||||||
|
@ -298,7 +296,6 @@ location /skynet/pin {
|
||||||
limit_req zone=uploads_by_ip burst=10 nodelay;
|
limit_req zone=uploads_by_ip burst=10 nodelay;
|
||||||
limit_req zone=uploads_by_ip_throttled;
|
limit_req zone=uploads_by_ip_throttled;
|
||||||
|
|
||||||
limit_req zone=downloads_by_ip burst=20 nodelay;
|
|
||||||
limit_req zone=downloads_by_ip_throttled;
|
limit_req zone=downloads_by_ip_throttled;
|
||||||
|
|
||||||
limit_conn upload_conn 3;
|
limit_conn upload_conn 3;
|
||||||
|
|
Reference in New Issue