Skip to content

Commit 9dd6887

Browse files
committed
rate limit sample submission
1 parent 10f1d82 commit 9dd6887

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nginx/nginx.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ 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_zone $binary_remote_addr zone=sample:10m rate=6r/m;
4344

4445
ssl_protocols TLSv1.2 TLSv1.3;
4546
ssl_ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256;
@@ -172,6 +173,7 @@ http {
172173
limit_except POST {
173174
deny all;
174175
}
176+
limit_req zone=sample burst=10 nodelay;
175177
}
176178

177179
location = /challenge {

0 commit comments

Comments
 (0)