HTTP proxy

From Wikitech
(Redirected from Http proxy)
Jump to navigation Jump to search

To allow HTTP requests reach the outside world, we maintain a HTTP proxy in each datacenter. They are exposed using services entries of the form webproxy.<datacenter>.wmnet and are not meant to be used from labs instances.

As of 14th February 2017, the entries are:

Service Name Server port
webproxy.eqiad.wmnet install1002.wikimedia.org 8080
webproxy.codfw.wmnet install2002.wikimedia.org 8080
webproxy.esams.wmnet install1002.wikimedia.org 8080
webproxy.ulsfo.wmnet install2002.wikimedia.org 8080

You can set the http_proxy and https_proxy environment variables to make many command-line scripts use this proxy automatically. Add these lines to you ~/.profile file.

export http_proxy=http://webproxy.eqiad.wmnet:8080
export https_proxy=http://webproxy.eqiad.wmnet:8080

You can also set these variables for your current. session only by running the same commands at the terminal prompt.

curl

If you are using curl, you can use the --proxy flag:

curl --proxy http://webproxy.eqiad.wmnet:8080 http://www.google.com

Reference

See also