Manual:$wgHTTPProxy

Details
Proxy to use for CURL requests, for example in side-uploads (uploads from an external URL).