]> git.openstreetmap.org Git - chef.git/blob - cookbooks/mediawiki/templates/default/mw-ext-QuickInstantCommons.inc.php.erb
community: fix port 80 not being IPv6 enabled
[chef.git] / cookbooks / mediawiki / templates / default / mw-ext-QuickInstantCommons.inc.php.erb
1 <?php
2 # DO NOT EDIT - This file is being maintained by Chef
3 wfLoadExtension( 'QuickInstantCommons' );
4 $wgUseQuickInstantCommons = false; // Disable as we manually set via wgForeignFileRepos
5 $wgForeignFileRepos[] = [
6         'class' => '\MediaWiki\Extension\QuickInstantCommons\Repo',
7         'name' => 'wikimediacommons',
8         'directory' => $wgUploadDirectory,
9         'apibase' => 'https://commons.wikimedia.org/w/api.php',
10         'hashLevels' => 2,
11         'thumbUrl' => 'https://upload.wikimedia.org/wikipedia/commons/thumb',
12         'fetchDescription' => true,
13         'descriptionCacheExpiry' => 60*60*24*30,
14         'transformVia404' => true,
15         'abbrvThreshold' => 160,
16         'apiMetadataExpiry' => 60*60*24*30,
17         'disabledMediaHandlers' => [TiffHandler::class]
18 ];