12000
This commit is contained in:
parent
2f419e3c6d
commit
e7b2dd15e6
2 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
const { axios } = require('../services/axios.js');
|
||||
const { readReportedIPs, updateSefinekAPIInCSV } = require('./csv.js');
|
||||
const log = require('./log.js');
|
||||
const clientIp = require('./clientIp');
|
||||
const clientIp = require('./clientIp.js');
|
||||
|
||||
const SEFINEK_API_URL = process.env.SEFINEK_API_URL || `${process.env.NODE_ENV === 'production' ? 'https://api.sefinek.net' : 'http://127.0.0.1:4010'}/api/v2/cloudflare-waf-abuseipdb/post`;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@ const axios = require('axios');
|
|||
const { version } = require('../package.json');
|
||||
|
||||
axios.defaults.headers.common['User-Agent'] = `Mozilla/5.0 (compatible; CF-WAF-AbuseIPDB/${version}; +https://github.com/sefinek24/Node-Cloudflare-WAF-AbuseIPDB)`;
|
||||
axios.defaults.timeout = 20000;
|
||||
axios.defaults.timeout = 12000;
|
||||
|
||||
module.exports = { axios, moduleVersion: version };
|
||||
Loading…
Add table
Reference in a new issue