Skip to content

Commit 6e1d241

Browse files
committed
rate limit sample submission
1 parent 10f1d82 commit 6e1d241

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

nginx/nginx.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ http {
4040
http2_max_concurrent_streams 32;
4141
limit_conn_zone $binary_remote_addr zone=addr:10m;
4242
limit_conn addr 256;
43+
limit_req_status 429;
44+
limit_req_zone $binary_remote_addr zone=sample:10m rate=6r/m;
4345

4446
ssl_protocols TLSv1.2 TLSv1.3;
4547
ssl_ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256;
@@ -172,6 +174,7 @@ http {
172174
limit_except POST {
173175
deny all;
174176
}
177+
limit_req zone=sample burst=10 nodelay;
175178
}
176179

177180
location = /challenge {

0 commit comments

Comments
 (0)