- 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
9 lines
322 B
Plaintext
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;
|