UFW-AbuseIPDB-Reporter/services/axios.js
2024-12-24 23:47:58 +01:00

13 lines
No EOL
392 B
JavaScript

const axios = require('axios');
const { version } = require('../config.js');
axios.defaults.headers.common = {
'User-Agent': `Mozilla/5.0 (compatible; UFW-AbuseIPDB-Reporter/${version}; +https://github.com/sefinek/UFW-AbuseIPDB-Reporter)`,
'Accept': 'application/json',
'Cache-Control': 'no-cache',
'Connection': 'keep-alive',
};
axios.defaults.timeout = 30000;
module.exports = axios;