mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 19:00:59 +03:00
Support global-agent for central proxy configuration (#3423)
* * Added global-agent as central Global HTTP/HTTPS proxy configurable using environment variable ** https://www.npmjs.com/package/global-agent * Server-Bootstrap on index.js ** import 'global-agent/bootstrap' * added dep in package.json ** global-agent: "^3.0.0 * * Added global-agent as central Global HTTP/HTTPS proxy configurable using environment variable ** Added env variables * update env example * update env and lock file * update env and lock file --------- Co-authored-by: Henry <hzj94@hotmail.com>
This commit is contained in:
@@ -52,3 +52,9 @@ PORT=3000
|
||||
|
||||
# APIKEY_STORAGE_TYPE=json (json | db)
|
||||
# SHOW_COMMUNITY_NODES=true
|
||||
|
||||
# Uncomment the following lines to enable global agent proxy
|
||||
# see https://www.npmjs.com/package/global-agent for more details
|
||||
# GLOBAL_AGENT_HTTP_PROXY=CorporateHttpProxyUrl
|
||||
# GLOBAL_AGENT_HTTPS_PROXY=CorporateHttpsProxyUrl
|
||||
# GLOBAL_AGENT_NO_PROXY=ExceptionHostsToBypassProxyIfNeeded
|
||||
@@ -85,7 +85,8 @@
|
||||
"sqlite3": "^5.1.6",
|
||||
"typeorm": "^0.3.6",
|
||||
"uuid": "^9.0.1",
|
||||
"winston": "^3.9.0"
|
||||
"winston": "^3.9.0",
|
||||
"global-agent": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/content-disposition": "0.5.8",
|
||||
|
||||
@@ -22,6 +22,7 @@ import flowiseApiV1Router from './routes'
|
||||
import errorHandlerMiddleware from './middlewares/errors'
|
||||
import { SSEStreamer } from './utils/SSEStreamer'
|
||||
import { validateAPIKey } from './utils/validateKey'
|
||||
import 'global-agent/bootstrap'
|
||||
|
||||
declare global {
|
||||
namespace Express {
|
||||
|
||||
Reference in New Issue
Block a user