From 106b88c51a4efe324ae601a6cbb0b197eb499d8f Mon Sep 17 00:00:00 2001 From: Diego Rodriguez Date: Mon, 23 Nov 2020 14:33:59 +0100 Subject: [PATCH] config: increment default rate limiting * Addresses reanahub/reana#286. --- CHANGES.rst | 5 +++++ reana_server/config.py | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index b2c6b62f..ea4c918f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,11 @@ Changes ======= +Version 0.7.2 (UNRELEASED) +-------------------------- + +- Changes rate limiting defaults to allow up to 20 connections per second. + Version 0.7.1 (2020-11-10) -------------------------- diff --git a/reana_server/config.py b/reana_server/config.py index 89b8135a..17bb720d 100644 --- a/reana_server/config.py +++ b/reana_server/config.py @@ -116,6 +116,11 @@ def _(x): APP_DEFAULT_SECURE_HEADERS["content_security_policy"] = {} APP_HEALTH_BLUEPRINT_ENABLED = False +# Rate limiting configuration +# =========================== +RATELIMIT_AUTHENTICATED_USER = "20 per second" +RATELIMIT_GUEST_USER = "20 per second" + # Flask-Breadcrumbs needs this variable set # ========================================= BREADCRUMBS_ROOT = "breadcrumbs"