Make hibp rate configurable (#2105)

This commit is contained in:
Adrià Casajús 2024-05-10 18:51:16 +02:00 committed by GitHub
parent b6004f3336
commit 8f12fabd81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -429,7 +429,7 @@ except Exception:
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