diff options
author | Kevin L. Mitchell <kevin.mitchell@rackspace.com> | 2011-07-15 17:01:31 +0000 |
---|---|---|
committer | Tarmac <> | 2011-07-15 17:01:31 +0000 |
commit | 3a11738f517999ed1fd3a2c0a7ca452c7191b50f (patch) | |
tree | 2f3967842e312eb44e4bbd737e36402671418e90 /nova/context.py | |
parent | 549b1e180a724617b1904a8037364a41bcc06269 (diff) | |
parent | ac6dcb5a8802d53390584fcde8cba8ca74c1d0d0 (diff) | |
download | nova-3a11738f517999ed1fd3a2c0a7ca452c7191b50f.tar.gz nova-3a11738f517999ed1fd3a2c0a7ca452c7191b50f.tar.xz nova-3a11738f517999ed1fd3a2c0a7ca452c7191b50f.zip |
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.)
Diffstat (limited to 'nova/context.py')
0 files changed, 0 insertions, 0 deletions