ADJUST Rate Limit 1r/s burst=1 to Test Rate Limiting REF: #175

This commit is contained in:
Mitchell Krog 2019-06-26 09:58:50 +02:00
parent e888172d64
commit 2f0d408228
No known key found for this signature in database
GPG key ID: C243C388553EDE5D

View file

@ -10631,7 +10631,7 @@ geo $ratelimited {
# this rate limiting will only take effect if you change any of the bots and change
# their block value from 1 to 2.
limit_conn_zone $bot_iplimit zone=bot2_connlimit:16m;
limit_req_zone $bot_iplimit zone=bot2_reqlimitip:16m rate=2r/m;
limit_req_zone $bot_iplimit zone=bot2_reqlimitip:16m rate=1r/s burst=1;
### *** MAKE SURE TO ADD to your nginx.conf ***
### server_names_hash_bucket_size 64;