🔒 Add rate limiting for get-all calls
continuous-integration/drone/push Build is passing Details

pull/55/head
Alexis Drai 2 years ago
parent 75aac77310
commit 9798de4560

@ -13,7 +13,13 @@
"Host": "localhost",
"Port": 7229
}
]
],
"RateLimitOptions": {
"EnableRateLimiting": true,
"Period": "1 second",
"PeriodTimespan": 1,
"Limit": 1
}
},
{
"UpstreamPathTemplate": "/gateway/cats",
@ -42,7 +48,25 @@
{
"UpstreamPathTemplate": "/gateway/bars",
"UpstreamHttpMethod": [ "Get", "Post" ],
"UpstreamHttpMethod": [ "Get" ],
"DownstreamPathTemplate": "/api/bars",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7229
}
],
"RateLimitOptions": {
"EnableRateLimiting": true,
"Period": "1 second",
"PeriodTimespan": 1,
"Limit": 1
}
},
{
"UpstreamPathTemplate": "/gateway/bars",
"UpstreamHttpMethod": [ "Post" ],
"DownstreamPathTemplate": "/api/bars",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
@ -67,7 +91,25 @@
{
"UpstreamPathTemplate": "/gateway/customers",
"UpstreamHttpMethod": [ "Get", "Post" ],
"UpstreamHttpMethod": [ "Get" ],
"DownstreamPathTemplate": "/api/customers",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7229
}
],
"RateLimitOptions": {
"EnableRateLimiting": true,
"Period": "1 second",
"PeriodTimespan": 1,
"Limit": 1
}
},
{
"UpstreamPathTemplate": "/gateway/customers",
"UpstreamHttpMethod": [ "Post" ],
"DownstreamPathTemplate": "/api/customers",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [

Loading…
Cancel
Save