mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-01 01:07:04 +02:00
12 lines
290 B
TypeScript
12 lines
290 B
TypeScript
import { HttpsProxyAgent } from 'https-proxy-agent';
|
|
|
|
export function getHttpProxyAgent() {
|
|
const httpProxy =
|
|
process.env.HTTPS_PROXY ??
|
|
process.env.https_proxy ??
|
|
process.env.HTTP_PROXY ??
|
|
process.env.http_proxy;
|
|
|
|
return httpProxy ? new HttpsProxyAgent(httpProxy) : undefined;
|
|
}
|