Skip to content

Commit 6b7bc33

Browse files
authored
Merge pull request #4101 from riotbib/api-rate-window-hardcoded
Source API_RATE_WINDOW from environment
2 parents 432eff7 + 5b6a4e1 commit 6b7bc33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

aleph/settings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ def __init__(self) -> None:
148148

149149
# API rate limiting (req/min for anonymous users)
150150
self.API_RATE_LIMIT = env.to_int("ALEPH_API_RATE_LIMIT", 30)
151-
self.API_RATE_WINDOW = 15 # minutes
151+
152+
# API rate window (in minutes)
153+
self.API_RATE_WINDOW = env.to_int("ALEPH_API_RATE_WINDOW", 15)
152154

153155
# Export file size limit
154156
self.EXPORT_MAX_SIZE = env.to_int(

0 commit comments

Comments
 (0)