Manual:$wgCopyUploadProxy

Details
Proxy to use for copy upload requests, or false to not use proxy for such requests.