Update limit and MAIN_DELAY

This commit is contained in:
Sefinek 2024-08-18 15:42:33 +02:00
parent 4f6a532481
commit b5c2fb41b8
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -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