em-http-request icon indicating copy to clipboard operation
em-http-request copied to clipboard

Add support for NO_PROXY env variable

Open bwilczek opened this issue 3 years ago • 0 comments

Implement missing feature, marked with this comment in http_connection_options.rb:

 # TODO: Add support for $http_no_proxy or $no_proxy ?

Set env variable no_proxy or NO_PROXY to provide coma-separated list of hosts for which env-provided HTTP_PROXY should not be used.

Domain wildcards are supported. For example: .tld will match any host name ending with .tld.

Example use:

HTTP_PROXY=http://host:8181 \
HTTPS_PROXY=http://host:8181 \
NO_PROXY=service1,.anything.in.subdomain,service2.internal \
bundle exec ruby my-app-with-em-http-request.rb

bwilczek avatar Jun 03 '22 13:06 bwilczek