Skip to content

Commit

Permalink
Simplify rate limiting
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorrell committed Sep 11, 2023
1 parent 0722da0 commit f9bd5a3
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,7 @@ def _(x): # needed to avoid start time failure with lazy strings

RATELIMIT_ENABLED = True

RATELIMIT_AUTHENTICATED_USER = "2500000 per hour;50000 per minute"

RATELIMIT_PER_ENDPOINT = {
"records.create": "2500000 per hour;50000 per minute",
"records.publish": "2500000 per hour;50000 per minute",
"draft_files.create": "2500000 per hour;50000 per minute",
"draft_files.update_content": "2500000 per hour;50000 per minute",
"draft_files.create_commit": "2500000 per hour;500 per minute"
}

RATELIMIT_AUTHENTICATED_USER = "25000 per hour;500 per minute"

# Flask
# =====
Expand Down

0 comments on commit f9bd5a3

Please sign in to comment.