Files
dashboard/backend/src/config/httpClient.ts
Matthias Hochmeister 243da302c7 update backend stuck/stall
2026-03-13 08:30:05 +01:00

12 lines
311 B
TypeScript

import axios from 'axios';
import * as http from 'http';
import * as https from 'https';
const httpClient = axios.create({
timeout: 10_000,
httpAgent: new http.Agent({ keepAlive: true, maxSockets: 20 }),
httpsAgent: new https.Agent({ keepAlive: true, maxSockets: 20 }),
});
export default httpClient;