Translations:Manual:$wgCopyUploadsDomains/4/en

The domains in the whitelist can include wildcard characters (*) in place of any of the domain levels, e.g. '*.flickr.com' or 'upload.*.gov.uk'.