Closed tokland closed 6 months ago
Its looking good! I'm planning drop the unblocker package soon, i'm gonna create a new middleware from scratch but its good approach to handle custom proxy url, im gonna keep this also in new version of Girici.
I'm gonna also update soon the documentation about this feature.
Use case: Redirect all network traffic through a HTTP/HTTPS/SOCKS proxy.
A very generic solution can be achieved using https://www.npmjs.com/package/proxy-agent. With a minor code change, we can now instruct girici to use a proxy definining standard environment variables.
Example:
ALL_PROXY=http://my-proxy:8080 npm run start