~rackspace-titan/nova/osapi-ipv6-lp798457

Viewing all changes in revision 1279.

  • Committer: Tarmac
  • Author(s): Kevin L. Mitchell
  • Date: 2011-07-15 17:01:31 UTC
  • mfrom: (1268.2.4 lp759978)
  • Revision ID: tarmac-20110715170131-ielkhm21b1mtio2e
Adds greater configuration flexibility to rate limiting via api-paste.ini.  In particular:

* "limits" relation provides a string representation of desired default limits in the form:

  - '(VERB, URI, REGEX, VALUE, UNIT); (VERB, URI, REGEX, VALUE, UNIT)'[...]

    + VALUE must be an integer, and UNIT must be one of SECOND, MINUTE, HOUR, DAY (case insensitive)

    + Empty string is also a valid value

* "user:<username>" relations specify limits in the same format, but per user.

* "limiter" relation can specify an alternate class to use in place of Limiter.

  - This makes it easier to use WsgiLimiterProxy if desired

(All these relations are specified in the '[filter:ratelimit]' section.)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: