Manual:$wgCopyUploadProxy/en

Details
HTTP proxy to use for copy upload requests (i.e. upload by URL), or false to not use proxy for such requests. Note that some extensions and services may use this as a general HTTP proxy, for example, to communicate with 3rd party APIs.