Skip to content

Commit

Permalink
Merge pull request #4101 from riotbib/api-rate-window-hardcoded
Browse files Browse the repository at this point in the history
Source API_RATE_WINDOW from environment
  • Loading branch information
stchris authored Jan 15, 2025
2 parents 432eff7 + 5b6a4e1 commit 6b7bc33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aleph/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ def __init__(self) -> None:

# API rate limiting (req/min for anonymous users)
self.API_RATE_LIMIT = env.to_int("ALEPH_API_RATE_LIMIT", 30)
self.API_RATE_WINDOW = 15 # minutes

# API rate window (in minutes)
self.API_RATE_WINDOW = env.to_int("ALEPH_API_RATE_WINDOW", 15)

# Export file size limit
self.EXPORT_MAX_SIZE = env.to_int(
Expand Down

0 comments on commit 6b7bc33

Please sign in to comment.