Files
the-door/deploy/rate-limit.conf
Alexander Whitestone bb4ba82ac8 burn: Fix crisis backend tests, gateway injection, and nginx rate limiting
- Fixed test imports (relative → absolute package imports)
- Added conftest.py for pytest path configuration
- Fixed get_system_prompt() to inject crisis context when detected
- Added pytest.ini configuration
- Expanded tests: 49 tests covering detection, response, gateway, edge cases, router
- Added deploy/rate-limit.conf for nginx http block inclusion
- Updated nginx.conf with correct zone name and limit_req_status 429
- Updated BACKEND_SETUP.md with complete setup instructions
2026-04-09 12:34:15 -04:00

9 lines
322 B
Plaintext

# The Door — Rate Limiting
# Add this block to your nginx main config http block:
# /etc/nginx/nginx.conf -> http { ... }
#
# This defines the rate limit zone used by the-door's server block.
# 10 requests per minute per IP, burst of 5 with nodelay.
limit_req_zone $binary_remote_addr zone=the_door_api:10m rate=10r/m;