From fb1cae9fb1f3d5565c092e61d885dc4abf20c10e Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 21 Aug 2018 09:49:28 -0400 Subject: [PATCH] higher rate limits for get requests --- src/Api/appsettings.json | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/src/Api/appsettings.json b/src/Api/appsettings.json index b17929bc0..417bd81bd 100644 --- a/src/Api/appsettings.json +++ b/src/Api/appsettings.json @@ -80,15 +80,40 @@ "ClientWhitelist": [], "GeneralRules": [ { - "Endpoint": "*", + "Endpoint": "post:*", "Period": "1m", "Limit": 60 }, { - "Endpoint": "*", + "Endpoint": "post:*", "Period": "1s", "Limit": 5 }, + { + "Endpoint": "put:*", + "Period": "1m", + "Limit": 60 + }, + { + "Endpoint": "put:*", + "Period": "1s", + "Limit": 5 + }, + { + "Endpoint": "delete:*", + "Period": "1m", + "Limit": 60 + }, + { + "Endpoint": "delete:*", + "Period": "1s", + "Limit": 5 + }, + { + "Endpoint": "get:*", + "Period": "1m", + "Limit": 200 + }, { "Endpoint": "post:/accounts/register", "Period": "1m",