Closed dadlerj closed 4 years ago
Update from @slimsag:
To be completely clear, my analysis is that (1) we do not support *_PROXY and (2) that we should not support it because it is too limited. We need a different format than just respecting _PROXY so it is not brittle, preferably done through the site configuration.
I think we're using a common HTTP cli underneath already (IIRC @keegancsmith did that), so theoretically shouldn't be a problem.
We do support HTTP_PROXY environment variables. I was surprised this wasn't working, and it seems github-proxy is the only place we don't support it :) Sending a PR to fix.
Note: I went down the route of supporting this via our site settings. It made everything way more complicated and I spun my wheels on it for a while.
The only services which do external communication are repo-updater, gitserver and github-proxy (missed that last one when I fixed). So I just made sure they worked.
Requested by https://app.hubspot.com/contacts/2762526/company/557692805
Context at https://sourcegraph.slack.com/archives/CTQ5LTF8D/p1592858268356300 and https://sourcegraph.slack.com/archives/CTQ5LTF8D/p1595011378044800