1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 07:12:41 +01:00
phorge-phorge/src/docs
epriestley 3698e4a14f Update rate limiting for APCu and X-Forwarded-For
Summary:
Ref T12612. This updates the rate limiting code to:

  - Support a customizable token, like the client's X-Forwarded-For address, rather than always using `REMOTE_ADDR`.
  - Support APCu.
  - Report a little more rate limiting information.
  - Not reference nonexistent documentation (removed in D16403).

I'm planning to put this into production on `secure` for now and then we can deploy it more broadly if things work well.

Test Plan:
 - Enabled it locally, used `ab -n 100` to hit the limit, saw the limit enforced.
 - Waited a while, was allowed to browse again.

Reviewers: chad, amckinley

Reviewed By: amckinley

Maniphest Tasks: T12612

Differential Revision: https://secure.phabricator.com/D17758
2017-04-21 20:39:14 -07:00
..
book Merge "Audit" more completely into "Diffusion" 2017-01-11 16:28:42 -08:00
contributor Fixing of the typos 2017-04-19 11:39:17 -07:00
flavor Fixing of the typos 2017-04-19 11:39:17 -07:00
tech Remove all "Phabricator Bot" code 2017-04-21 12:48:35 -07:00
user Update rate limiting for APCu and X-Forwarded-For 2017-04-21 20:39:14 -07:00