aktueller stand
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
const axios = require('axios');
|
||||
const http = require('http');
|
||||
const https = require('https');
|
||||
const requestLogStore = require('./requestLogStore');
|
||||
const sessionStore = require('./sessionStore');
|
||||
|
||||
const BASE_URL = 'https://foodsharing.de';
|
||||
|
||||
const keepAliveHttpAgent = new http.Agent({ keepAlive: true, maxSockets: 10 });
|
||||
const keepAliveHttpsAgent = new https.Agent({ keepAlive: true, maxSockets: 10 });
|
||||
|
||||
const client = axios.create({
|
||||
baseURL: BASE_URL,
|
||||
timeout: 20000,
|
||||
httpAgent: keepAliveHttpAgent,
|
||||
httpsAgent: keepAliveHttpsAgent,
|
||||
headers: {
|
||||
'User-Agent': 'pickup-config/1.0 (+https://foodsharing.de)',
|
||||
Accept: 'application/json, text/plain, */*'
|
||||
|
||||
Reference in New Issue
Block a user