Skip to content

Commit

Permalink
Make hibp rate configurable (#2105)
Browse files Browse the repository at this point in the history
  • Loading branch information
acasajus committed May 10, 2024
1 parent b6004f3 commit 8f12fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def sl_getenv(env_var: str, default_factory: Callable = None):
HIBP_SCAN_INTERVAL_DAYS = 7
HIBP_API_KEYS = sl_getenv("HIBP_API_KEYS", list) or []
HIBP_MAX_ALIAS_CHECK = 10_000
HIBP_RPM = 100
HIBP_RPM = int(os.environ.get("HIBP_API_RPM", 100))
HIBP_SKIP_PARTNER_ALIAS = os.environ.get("HIBP_SKIP_PARTNER_ALIAS")

KEEP_OLD_DATA_DAYS = 30
Expand Down

0 comments on commit 8f12fab

Please sign in to comment.