halitsever / girici-web-proxy

🌐 Web proxy project written in Typescript & Vue.js. Node.js alternative for php-proxy.
MIT License
52 stars 20 forks source link

Add support for proxy agents #9

Closed tokland closed 6 months ago

tokland commented 6 months ago

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

halitsever commented 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.