SUCCESS_COOLDOWN=500
This commit is contained in:
parent
fdbe4694a8
commit
9981a2991d
2 changed files with 4 additions and 4 deletions
|
|
@ -19,14 +19,14 @@ CYCLE_INTERVAL=120
|
||||||
|
|
||||||
# The minimum time (in hours) that must pass after reporting an IP address before it can be reported again.
|
# The minimum time (in hours) that must pass after reporting an IP address before it can be reported again.
|
||||||
# The required time is >= 15 minutes, according to AbuseIPDB API limits.
|
# The required time is >= 15 minutes, according to AbuseIPDB API limits.
|
||||||
REPORTED_IP_COOLDOWN_MS=6
|
REPORTED_IP_COOLDOWN_MS=7
|
||||||
|
|
||||||
# The maximum URI length that can be reported to AbuseIPDB.
|
# The maximum URI length that can be reported to AbuseIPDB.
|
||||||
# If Cloudflare returns a longer URI, the API request will fail.
|
# If Cloudflare returns a longer URI, the API request will fail.
|
||||||
MAX_URL_LENGTH=920
|
MAX_URL_LENGTH=920
|
||||||
|
|
||||||
# Additional delay (in seconds) after each successful IP report to avoid overloading the AbuseIPDB API.
|
# Additional delay (in miliseconds) after each successful IP report to avoid overloading the AbuseIPDB API.
|
||||||
SUCCESS_COOLDOWN=1
|
SUCCESS_COOLDOWN=500
|
||||||
|
|
||||||
# Interval for refreshing your IP address (in minutes).
|
# Interval for refreshing your IP address (in minutes).
|
||||||
# This ensures that WAF violations originating from your IP address are not reported to AbuseIPDB.
|
# This ensures that WAF violations originating from your IP address are not reported to AbuseIPDB.
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ const REPORTED_IP_COOLDOWN_MS = parseInt(process.env.REPORTED_IP_COOLDOWN_MS ||
|
||||||
|
|
||||||
const MAX_URL_LENGTH = parseInt(process.env.MAX_URL_LENGTH || '920');
|
const MAX_URL_LENGTH = parseInt(process.env.MAX_URL_LENGTH || '920');
|
||||||
|
|
||||||
const SUCCESS_COOLDOWN = parseInt(process.env.SUCCESS_COOLDOWN || '2') * 1000;
|
const SUCCESS_COOLDOWN = parseInt(process.env.SUCCESS_COOLDOWN || '1000');
|
||||||
|
|
||||||
const IP_REFRESH_INTERVAL = parseInt(process.env.IP_REFRESH_INTERVAL || '80') * 60 * 1000;
|
const IP_REFRESH_INTERVAL = parseInt(process.env.IP_REFRESH_INTERVAL || '80') * 60 * 1000;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue