rename zones

This commit is contained in:
PJ 2020-11-25 15:15:23 +01:00
parent 5a9b630f79
commit 0040aa5be1
No known key found for this signature in database
GPG Key ID: F345964979FA8971
1 changed files with 4 additions and 4 deletions

View File

@ -10,8 +10,8 @@ map $limit $limit_key {
1 $binary_remote_addr;
}
limit_req_zone $binary_remote_addr zone=upload_req:10m rate=10r/s;
limit_req_zone $limit_key zone=upload_req_rl:10m rate=10r/m;
limit_req_zone $binary_remote_addr zone=uploads_by_ip:10m rate=10r/s;
limit_req_zone $limit_key zone=uploads_by_ip_throttled:10m rate=10r/m;
limit_conn_zone $binary_remote_addr zone=upload_conn:10m;
limit_conn_zone $limit_key zone=upload_conn_rl:10m;
@ -244,8 +244,8 @@ server {
include /etc/nginx/conf.d/include/cors;
include /etc/nginx/conf.d/include/sia-auth;
limit_req zone=upload_req burst=100 nodelay;
limit_req zone=upload_req_rl;
limit_req zone=uploads_by_ip burst=100 nodelay;
limit_req zone=uploads_by_ip_throttled;
limit_conn upload_conn 10;
limit_conn upload_conn_rl 1;