change-metrics / monocle

Monocle helps teams and individual to better organize daily duties and to detect anomalies in the way changes are produced and reviewed.
https://changemetrics.io
GNU Affero General Public License v3.0
372 stars 58 forks source link

Corporate proxy settings for crawler #1090

Closed azat-alimov-db closed 10 months ago

azat-alimov-db commented 10 months ago

Hello,

Is there a way to configure crawler to collect metrics from Github, via corporate proxy?

morucci commented 10 months ago

No actually this is not supported.

I guess we could enable the proxy via the env vars (https://hackage.haskell.org/package/http-client-0.7.15/docs/Network-HTTP-Client.html#g:5) proxyEnvironment?

TristanCacqueray commented 10 months ago

@azat-alimov-db could you try setting the https_proxy environment variable for the cralwer process?

morucci commented 10 months ago

@TristanCacqueray yes you are right. It seems to be supported already by default (I did a quick try with Squid). The crawler reads https_proxy=<hostname>:3128 and forward requests to the proxy.

azat-alimov-db commented 9 months ago

Thank you that works.