mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-11-14 08:17:26 +01:00
8 lines
399 B
Plaintext
8 lines
399 B
Plaintext
# Include in each HTTPS application server block, outside location /.
|
|
location @anonymous_bulk_limited {
|
|
default_type application/json;
|
|
add_header Retry-After $anonymous_bulk_retry always;
|
|
add_header Cache-Control "no-store" always;
|
|
return 429 '{"error":"rate_limited","message":"Too many individual file or directory requests. Use the repository ZIP download for bulk access."}';
|
|
}
|