Add posibility to set rate limiting to locations
Add possibility to override rate limits to custom location
on ngix proxy.
fixes-bug: PROD-36891
Change-Id: I5668818b691089304cd7242a1c795d9c6109ca27
diff --git a/README.rst b/README.rst
index 48d23df..d7e9862 100644
--- a/README.rst
+++ b/README.rst
@@ -460,6 +460,36 @@
burst: 5
enabled: true
+To apply request limiting to particular location of particular site `limit` should be
+applied on location level. Pay attention that location level overrides site level,
+Two methods are supported:
+ - By IP
+ - By http requst method (get, post ...)
+for example:
+
+.. code-block:: yaml
+
+ nginx:
+ server:
+ site:
+ nginx_proxy_openstack_api_keystone:
+ location:
+ /some_location/:
+ limit:
+ enabled: true
+ methods:
+ ip:
+ enabled: True
+ get:
+ enabled: True
+ rate: 120r/s
+ burst: 600
+ size: 20m
+ nodelay: True
+ post:
+ enabled: True
+ rate: 50r/m
+ burst: 80
Use `ngx_http_limit_conn_module` module that is used to set the shared memory
zone and the maximum allowed number of connections for a given key value.