You are browsing a read-only backup copy of Wikitech. The primary site can be found at wikitech.wikimedia.org

Difference between revisions of "HTTP proxy"

From Wikitech-static
Jump to navigation Jump to search
imported>Hoo man
(Let search path figure out the right proxy to use)
imported>BryanDavis
(tweak wording; interwiki links)
 
Line 1: Line 1:
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 <code>webproxy.<datacenter>.wmnet</code> and are not meant to be used from labs instances.
To allow HTTP requests reach the outside world, we maintain a caching '''HTTP proxy''' in each datacenter. They are exposed using services entries of the form <code>webproxy.<datacenter>.wmnet</code>. These proxies are ''not'' meant to be used from Cloud VPS instances.


As of 20th August 2019, the entries are:
As of 20th August 2019, the entries are:
Line 30: Line 30:


== Reference ==
== Reference ==
* Gerrit change adding the DNS entries https://gerrit.wikimedia.org/r/#/c/105189/
* [[gerrit:105189|Gerrit change adding the DNS entries]]


== See also ==
== See also ==
* [[url-downloader]] (another set of squid proxies for slightly different use cases)
* [[url-downloader]] (another set of squid proxies for slightly different use cases)
* [https://phabricator.wikimedia.org/T254011 Why do we have 2 sets of squid proxies?]
* [[phab:T254011|T254011: Why do we have 2 sets of squid proxies?]]


[[Category:Services]]
[[Category:Services]]

Latest revision as of 17:40, 24 September 2021

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

As of 20th August 2019, the entries are:

Service Name Server port
webproxy.eqiad.wmnet install1003.wikimedia.org 8080
webproxy.codfw.wmnet install2003.wikimedia.org 8080
webproxy.esams.wmnet install1003.wikimedia.org 8080
webproxy.ulsfo.wmnet install2003.wikimedia.org 8080
webproxy.eqsin.wmnet install2003.wikimedia.org 8080

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

export http_proxy=http://webproxy:8080
export https_proxy=http://webproxy:8080
export no_proxy=127.0.0.1,localhost,.wmnet

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