Skip to content

Commit

Permalink
config: increment default rate limiting
Browse files Browse the repository at this point in the history
* Addresses reanahub/reana#286.
  • Loading branch information
Diego Rodriguez committed Nov 23, 2020
1 parent 28454b9 commit 3091416
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Version 0.7.1 (2020-11-10)
- Fixes restarting of Yadage and CWL workflows.
- Fixes conflicting ``kombu`` installation requirements by requiring Celery version 4.
- Changes ``/api/you`` endpoint to include REANA server version information.
- Changes rate limiting defaults to allow up to 20 connections per second.


Version 0.7.0 (2020-10-20)
--------------------------
Expand Down
5 changes: 5 additions & 0 deletions reana_server/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3091416

Please sign in to comment.