mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00: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;
|
|
}
|