Update limit and MAIN_DELAY
This commit is contained in:
parent
4f6a532481
commit
b5c2fb41b8
2 changed files with 2 additions and 2 deletions
2
index.js
2
index.js
|
|
@ -12,7 +12,7 @@ const log = require('./scripts/log.js');
|
|||
const COOLDOWN_MS = 2000;
|
||||
const REPORTED_IP_COOLDOWN_MS = 7 * 60 * 60 * 1000;
|
||||
const MAX_URL_LENGTH = 2000;
|
||||
const MAIN_DELAY = process.env.NODE_ENV === 'production' ? 2 * 60 * 60 * 1000 : 10 * 1000;
|
||||
const MAIN_DELAY = process.env.NODE_ENV === 'production' ? 4 * 60 * 60 * 1000 : 8 * 1000;
|
||||
|
||||
const fetchBlockedIPs = async () => {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ const query = `query ListFirewallEvents($zoneTag: string, $filter: FirewallEvent
|
|||
zones(filter: { zoneTag: $zoneTag }) {
|
||||
firewallEventsAdaptive(
|
||||
filter: $filter
|
||||
limit: 200
|
||||
limit: 500
|
||||
orderBy: [datetime_DESC]
|
||||
) {
|
||||
action
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue