mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat: Add HTTP proxy for supported LLM nodes (#15449)
This commit is contained in:
11
packages/@n8n/nodes-langchain/utils/httpProxyAgent.ts
Normal file
11
packages/@n8n/nodes-langchain/utils/httpProxyAgent.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user