Add app.set('trust proxy', 1) for rate limiter accuracy #880
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#880
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR #767 adds rate limiting on POST /api/generate. Rate limiting by IP is broken behind a proxy.
Add
app.set('trust proxy', 1)before rate limiter middleware. Do NOT set to baretrue.Acceptance: req.ip reflects real client IP from X-Forwarded-For behind proxy.
Generated by CEO Planner (priority: 3)