question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

proxy for outgoing requests

See original GitHub issue

Is there a way to specify a proxy for outgoing requests? At work we have to pass requests that go to the internet trough a proxy. I have http_proxy and https_proxy environment variables set, and most command line utilities like curl, git and so on use those env vars, but when I do something like

--rewrite '/api/* -> https://external-service.example.com/api/$1'

the https://external-service.example.com/api/$1 requests do not use the proxy for the outgoing connection. Am I doing something wrong, or is a proxy just not supported?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:22 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
75lbcommented, May 27, 2019

I’m still working on local-web-server v3 but i’ve published a prerelease, just for you.

$ npm install local-web-server@next

Obviously this is still in beta and unstable! Let me know if you have any issues.

1reaction
S2-commented, May 23, 2019

Works like a charm!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Specifying Third-Party Proxy Servers for Outbound Requests
The proxy server alias identifies a proxy server and a port on the server through which you want to route requests. You can...
Read more >
Configuring outgoing HTTP requests - Keycloak
All outgoing requests use the proxy https://www-proxy.acme.com:8080 except for requests to google.com or any subdomain of google.com, such as auth.google.com.
Read more >
Proxy outgoing traffic via all ports to a single local port using ...
For all HTTP(S) requests from other ports, proxy through 127.0.0.1:1080; Incoming requests are not touched and received normally. You may wonder ...
Read more >
Configuring an outbound web proxy server - GitHub Docs
Types of outbound messages include outgoing webhooks, uploading bundles, and fetching legacy avatars. The proxy server's URL is the protocol, domain or IP ......
Read more >
How do I configure node-http-proxy for outgoing requests?
Since node-http-proxy seems to be a proxy for inbound connections to a server farm, and not for outbound connections to random websites, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found