Skip to content

Commit 02a29ae

Browse files
authored
Merge pull request #303 from NixOS/monitoring
add an additional subnet for rate limits
2 parents a88c0e4 + 092e9b1 commit 02a29ae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/nixos-wiki/default.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ in
309309
levels=1:2
310310
keys_zone=mediawiki:100m
311311
inactive=5h
312-
max_size=20g
312+
max_size=15g
313313
use_temp_path=off;
314314
315315
# Cache key to use - includes host, request URI, and query string
@@ -329,7 +329,9 @@ in
329329
default 0;
330330
331331
# Alibaba Cloud (comprehensive list)
332-
8.128.0.0/10 1; # 8.128.0.0 - 8.191.255.255 (main bot source)
332+
8.128.0.0/10 1; # observed bot traffic
333+
8.160.0.0/11 1; # 8.160.0.0 - 8.191.255.255 (expanded range due to heavy scraping)
334+
333335
8.212.128.0/18 1; # 8.212.128.0 - 8.212.191.255
334336
47.52.0.0/16 1; # 47.52.0.0 - 47.52.255.255
335337
47.56.0.0/15 1; # 47.56.0.0 - 47.57.255.255

0 commit comments

Comments
 (0)