Node.js version (not finished yet)

This commit is contained in:
Sefinek committed 2024-12-19 14:58:18 +01:00
1 parent 4469aa0816
commit c19d2dd7c1
18 files changed
+487 -562

No files matched your search

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