forked from membrane/api-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproxies.xml
More file actions
30 lines (24 loc) · 971 Bytes
/
proxies.xml
File metadata and controls
30 lines (24 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<spring:beans xmlns="http://membrane-soa.org/proxies/1/"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://membrane-soa.org/proxies/1/ http://membrane-soa.org/schemas/proxies-1.xsd">
<router>
<!-- Applies to all APIs in this configuration -->
<global>
<!-- Use client IP (default) to count requests -->
<rateLimiter requestLimit="10" requestLimitDuration="PT1M"/>
</global>
<api port="2000">
<static>Success</static>
<return/>
</api>
<api port="2010">
<path>/reset-pwd</path>
<!-- Use the content of the field 'user' to count requests -->
<rateLimiter requestLimit="3" requestLimitDuration="PT30S" language="jsonpath" keyExpression="$.user"/>
<static>Success</static>
<return/>
</api>
</router>
</spring:beans>