MediaWiki REL1_37
DefaultSettings.php
Go to the documentation of this file.
1<?php
46if ( !defined( 'MEDIAWIKI' ) ) {
47 echo "This file is part of MediaWiki and is not a valid entry point\n";
48 die( 1 );
49}
50
59
67 'main' => 'GlobalVarConfig::newInstance'
68];
69
76
80$wgSitename = 'MediaWiki';
81
82/***************************************************************************/
83// region Server URLs and file paths
108$wgServer = false;
109
118
125
133
146
166
177
195$wgUsePathInfo = ( strpos( PHP_SAPI, 'cgi' ) === false ) &&
196 ( strpos( PHP_SAPI, 'apache2filter' ) === false ) &&
197 ( strpos( PHP_SAPI, 'isapi' ) === false );
198
204$wgScript = false;
205
213
220
228
235
242
248$wgExtensionDirectory = "{$IP}/extensions";
249
255$wgStyleDirectory = "{$IP}/skins";
256
265
271
285
293
298
304
312$wgLogo = false;
313
364$wgLogos = false;
365
396$wgLogoHD = false;
397
402$wgFavicon = '/favicon.ico';
403
410
430
453
460
473
489
499
500// endregion -- end of server URLs and file paths
501
502/***************************************************************************/
503// region Files and file uploads
516
520$wgUploadStashMaxAge = 6 * 3600; // 6 hours
521
531
536
545
551
556
572
698
713
724
754
763
772
781
788$wgRepositoryBaseUrl = 'https://commons.wikimedia.org/wiki/File:';
789
798
808
817
826
837
848 // Fields to make available in the dialog. `true` means that this field is visible, `false` means
849 // that it is hidden. The "Name" field can't be hidden. Note that you also have to add the
850 // matching replacement to the 'filepage' format key below to make use of these.
851 'fields' => [
852 'description' => true,
853 'date' => false,
854 'categories' => false,
855 ],
856 // Suffix of localisation messages used to describe the license under which the uploaded file will
857 // be released. The same value may be set for both 'local' and 'foreign' uploads.
858 'licensemessages' => [
859 // The 'local' messages are used for local uploads on this wiki:
860 // * upload-form-label-own-work-message-generic-local
861 // * upload-form-label-not-own-work-message-generic-local
862 // * upload-form-label-not-own-work-local-generic-local
863 'local' => 'generic-local',
864 // The 'foreign' messages are used for cross-wiki uploads from other wikis to this wiki:
865 // * upload-form-label-own-work-message-generic-foreign
866 // * upload-form-label-not-own-work-message-generic-foreign
867 // * upload-form-label-not-own-work-local-generic-foreign
868 'foreign' => 'generic-foreign',
869 ],
870 // Upload comments to use for 'local' and 'foreign' uploads. This can also be set to a single
871 // string value, in which case it is used for both kinds of uploads. Available replacements:
872 // * $HOST - domain name from which a cross-wiki upload originates
873 // * $PAGENAME - wiki page name from which an upload originates
874 'comment' => [
875 'local' => '',
876 'foreign' => '',
877 ],
878 // Format of the file page wikitext to be generated from the fields input by the user.
879 'format' => [
880 // Wrapper for the whole page. Available replacements:
881 // * $DESCRIPTION - file description, as input by the user (only if the 'description' field is
882 // enabled), wrapped as defined below in the 'description' key
883 // * $DATE - file creation date, as input by the user (only if the 'date' field is enabled)
884 // * $SOURCE - as defined below in the 'ownwork' key, may be extended in the future
885 // * $AUTHOR - linked user name, may be extended in the future
886 // * $LICENSE - as defined below in the 'license' key, may be extended in the future
887 // * $CATEGORIES - file categories wikitext, as input by the user (only if the 'categories'
888 // field is enabled), or if no input, as defined below in the 'uncategorized' key
889 'filepage' => '$DESCRIPTION',
890 // Wrapped for file description. Available replacements:
891 // * $LANGUAGE - source wiki's content language
892 // * $TEXT - input by the user
893 'description' => '$TEXT',
894 'ownwork' => '',
895 'license' => '',
896 'uncategorized' => '',
897 ],
898];
899
938
950
962$wgShowEXIF = function_exists( 'exif_read_data' );
963
968
975
982
989
995
1007
1028$wgMaxUploadSize = 1024 * 1024 * 100;
1029
1045
1057
1064
1077
1086
1094
1103$wgFileExtensions = [ 'png', 'gif', 'jpg', 'jpeg', 'webp' ];
1104
1113 # HTML may contain cookie-stealing JavaScript and web bugs
1114 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht',
1115 # PHP scripts may execute arbitrary code on the server
1116 'php', 'phtml', 'php3', 'php4', 'php5', 'phps', 'phar',
1117 # Other types that may be interpreted by some servers
1118 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1119 # May contain harmful executables for Windows victims
1120 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl'
1121];
1122
1130 # HTML may contain cookie-stealing JavaScript and web bugs
1131 'text/html',
1132 # Similarly with JavaScript itself
1133 'application/javascript', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1134 # PHP scripts may execute arbitrary code on the server
1135 'application/x-php', 'text/x-php',
1136 # Other types that may be interpreted by some servers
1137 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
1138 # Client-side hazards on Internet Explorer
1139 'text/scriptlet', 'application/x-msdownload',
1140 # Windows metafile, client-side vulnerability on some systems
1141 'application/x-msmetafile',
1142];
1143
1150
1157
1165
1173
1178
1190 MEDIATYPE_BITMAP, // all bitmap formats
1191 MEDIATYPE_AUDIO, // all audio formats
1192 MEDIATYPE_VIDEO, // all plain video formats
1193 "image/svg+xml", // svg (only needed if inline rendering of svg is not supported)
1194 "application/pdf", // PDF files
1195 # "application/x-shockwave-flash", //flash/shockwave movie
1196];
1197
1206
1216
1222 'image/jpeg' => 'MockBitmapHandler',
1223 'image/png' => 'MockBitmapHandler',
1224 'image/gif' => 'MockBitmapHandler',
1225 'image/tiff' => 'MockBitmapHandler',
1226 'image/webp' => 'MockBitmapHandler',
1227 'image/x-ms-bmp' => 'MockBitmapHandler',
1228 'image/x-bmp' => 'MockBitmapHandler',
1229 'image/x-xcf' => 'MockBitmapHandler',
1230 'image/svg+xml' => 'MockSvgHandler',
1231 'image/vnd.djvu' => 'MockDjVuHandler',
1232];
1233
1240
1250
1254$wgImageMagickConvertCommand = '/usr/bin/convert';
1255
1261
1266
1271
1277
1291
1297$wgJpegTran = '/usr/bin/jpegtran';
1298
1319
1328
1333$wgExiv2Command = '/usr/bin/exiv2';
1334
1340$wgExiftool = '/usr/bin/exiftool';
1341
1352 'ImageMagick' =>
1353 '$path/convert -background "#ffffff00" -thumbnail $widthx$height\! $input PNG:$output',
1354 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1355 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1356 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d '
1357 . '$output $input',
1358 'rsvg' => '$path/rsvg-convert -w $width -h $height -o $output $input',
1359 'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output',
1360 'ImagickExt' => [ 'SvgHandler::rasterizeImagickExt' ],
1361];
1362
1366$wgSVGConverter = 'ImageMagick';
1367
1372
1377
1383
1393
1408
1416
1431
1438$wgThumbnailEpoch = '20030516000000';
1439
1447
1460
1482
1487
1494
1501
1537
1538 # setup for clamav
1539 'clamav' => [
1540 'command' => 'clamscan --no-summary ',
1541 'codemap' => [
1542 "0" => AV_NO_VIRUS, # no virus
1543 "1" => AV_VIRUS_FOUND, # virus found
1544 "52" => AV_SCAN_ABORTED, # unsupported file format (probably immune)
1545 "*" => AV_SCAN_FAILED, # else scan failed
1546 ],
1547 'messagepattern' => '/.*?:(.*)/sim',
1548 ],
1549];
1550
1555
1560
1570
1580$wgMimeTypeFile = 'internal';
1581
1586$wgMimeInfoFile = 'internal';
1587
1600
1607
1613 'http://www.w3.org/2000/svg:svg' => 'image/svg+xml',
1614 'svg' => 'image/svg+xml',
1615 'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram',
1616 'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml?
1617 'html' => 'text/html', // application/xhtml+xml?
1618];
1619
1631 [ 320, 240 ],
1632 [ 640, 480 ],
1633 [ 800, 600 ],
1634 [ 1024, 768 ],
1635 [ 1280, 1024 ],
1636 [ 2560, 2048 ],
1637];
1638
1645 120,
1646 150,
1647 180,
1648 200,
1649 250,
1650 300
1651];
1652
1663
1680
1691
1704
1711
1719
1727
1743
1750
1755
1763
1772
1773/***************************************************************************/
1774// region DJVU settings
1783
1790
1797
1804
1809
1810// endregion -- end of DJvu
1811
1812// endregion -- end of file uploads
1813
1814/***************************************************************************/
1815// region Email settings
1824
1834
1841
1848
1854
1864
1871
1882
1888
1892$wgNewPasswordExpiry = 3600 * 24 * 7;
1893
1898
1904
1909$wgPasswordExpireGrace = 3600 * 24 * 7; // 7 days
1910
1928$wgSMTP = false;
1929
1934
1940
1953
1954// TODO move UPO to preferences probably ?
1955# If set to true, users get a corresponding option in their preferences and can choose to
1956# enable or disable at their discretion
1957# If set to false, the corresponding input form on the user preference page is suppressed
1958# It call this to be a "user-preferences-option (UPO)"
1959
1966
1971
1980
1996
2011
2020
2026
2031
2037
2038// endregion -- end of email settings
2039
2040/***************************************************************************/
2041// region Database settings
2052$wgDBname = 'my_wiki';
2053
2063
2073
2077$wgDBserver = 'localhost';
2078
2083
2087$wgDBuser = 'wikiuser';
2088
2093
2097$wgDBtype = 'mysql';
2098
2107$wgDBssl = false;
2108
2118
2123
2128
2141
2155
2159$wgDBTableOptions = 'ENGINE=InnoDB, DEFAULT CHARSET=binary';
2160
2168
2175
2180
2207
2212
2217$wgSharedTables = [ 'user', 'user_properties' ];
2218
2224
2279
2290$wgLBFactoryConf = [ 'class' => \Wikimedia\Rdbms\LBFactorySimple::class ];
2291
2303
2308
2328
2343
2352
2359
2366
2389
2411
2412// endregion -- End of DB settings
2413
2414/***************************************************************************/
2415// region Content handlers and storage
2426 // the usual case
2427 CONTENT_MODEL_WIKITEXT => WikitextContentHandler::class,
2428 // dumb version, no syntax highlighting
2429 CONTENT_MODEL_JAVASCRIPT => JavaScriptContentHandler::class,
2430 // simple implementation, for use by extensions, etc.
2431 CONTENT_MODEL_JSON => JsonContentHandler::class,
2432 // dumb version, no syntax highlighting
2433 CONTENT_MODEL_CSS => CssContentHandler::class,
2434 // plain text, for use by extensions, etc.
2435 CONTENT_MODEL_TEXT => TextContentHandler::class,
2436 // fallback for unknown models, from imports or extensions that were removed
2437 CONTENT_MODEL_UNKNOWN => FallbackContentHandler::class,
2438];
2439
2452
2465
2477 CONTENT_MODEL_WIKITEXT, // Just for completeness, wikitext will always be parsed.
2478 CONTENT_MODEL_JAVASCRIPT, // Make categories etc work, people put them into comments.
2479 CONTENT_MODEL_CSS, // Make categories etc work, people put them into comments.
2480];
2481
2489
2502
2518
2534
2544
2552
2567
2573
2574// endregion -- end of Content handlers and storage
2575
2576/***************************************************************************/
2577// region Performance hacks and limits
2591
2602
2619
2624
2629
2634
2639
2644
2649
2654
2660
2694
2703
2712
2718
2723
2724// endregion -- end performance hacks
2725
2726/***************************************************************************/
2727// region Cache settings
2739
2758
2766
2774
2783
2793
2808 CACHE_NONE => [ 'class' => EmptyBagOStuff::class, 'reportDupes' => false ],
2809 CACHE_DB => [ 'class' => SqlBagOStuff::class, 'loggroup' => 'SQLBagOStuff' ],
2810
2811 CACHE_ANYTHING => [ 'factory' => 'ObjectCache::newAnything' ],
2812 CACHE_ACCEL => [ 'factory' => 'ObjectCache::getLocalServerInstance' ],
2813 CACHE_MEMCACHED => [ 'class' => MemcachedPhpBagOStuff::class, 'loggroup' => 'memcached' ],
2814
2815 'db-replicated' => [
2816 'class' => ReplicatedBagOStuff::class,
2817 'readFactory' => [
2818 'factory' => 'ObjectCache::newFromParams',
2819 'args' => [ [ 'class' => SqlBagOStuff::class, 'replicaOnly' => true ] ]
2820 ],
2821 'writeFactory' => [
2822 'factory' => 'ObjectCache::newFromParams',
2823 'args' => [ [ 'class' => SqlBagOStuff::class, 'replicaOnly' => false ] ]
2824 ],
2825 'loggroup' => 'SQLBagOStuff',
2826 'reportDupes' => false
2827 ],
2828 'memcached-php' => [ 'class' => MemcachedPhpBagOStuff::class, 'loggroup' => 'memcached' ],
2829 'memcached-pecl' => [ 'class' => MemcachedPeclBagOStuff::class, 'loggroup' => 'memcached' ],
2830 'hash' => [ 'class' => HashBagOStuff::class, 'reportDupes' => false ],
2831
2832 // Deprecated since 1.35.
2833 // - To configure a wg*CacheType variable to use the local server cache,
2834 // use CACHE_ACCEL instead, which will select these automatically.
2835 // - To access the object for the local server cache at run-time,
2836 // use MediaWikiServices::getLocalServerObjectCache()
2837 // instead of e.g. ObjectCache::getInstance( 'apcu' ).
2838 // - To instantiate a new one of these explicitly, do so directly
2839 // by using `new APCUBagOStuff( [ … ] )`
2840 // - To instantiate a new one of these including auto-detection and fallback,
2841 // use ObjectCache::makeLocalServerCache().
2842 'apc' => [ 'class' => APCUBagOStuff::class, 'reportDupes' => false ],
2843 'apcu' => [ 'class' => APCUBagOStuff::class, 'reportDupes' => false ],
2844 'wincache' => [ 'class' => WinCacheBagOStuff::class, 'reportDupes' => false ],
2845];
2846
2869
2896 CACHE_NONE => [
2897 'class' => WANObjectCache::class,
2898 'cacheId' => CACHE_NONE,
2899 ]
2900];
2901
2914
2942$wgMainStash = 'db-replicated';
2943
2960
2966
2972
2977
2995
3004
3011
3015$wgMemCachedServers = [ '127.0.0.1:11211' ];
3016
3022
3027
3040
3048
3081 'class' => LocalisationCache::class,
3082 'store' => 'detect',
3083 'storeClass' => false,
3084 'storeDirectory' => false,
3085 'storeServer' => [],
3086 'forceRecache' => false,
3087 'manualRecache' => false,
3088];
3089
3094
3103$wgCacheEpoch = '20030516000000';
3104
3110
3117
3125
3131
3142
3147
3154
3162
3173
3190
3206
3207// endregion -- end of cache settings
3208
3209/***************************************************************************/
3210// region HTTP proxy (CDN) settings
3230
3240
3250
3261
3269
3277
3286
3302
3309
3316
3328
3338
3360
3408
3414
3419
3420// endregion -- end of HTTP proxy settings
3421
3422/***************************************************************************/
3423// region Language, regional and character encoding settings
3443
3454
3459
3464
3479
3488
3493
3508 // Language codes of macro languages, which get mapped to the main language
3509 'bh' => 'bho', // Bihari language family
3510 'no' => 'nb', // Norwegian language family
3511
3512 // Language variants which get mapped to the main language
3513 'simple' => 'en', // Simple English
3514];
3515
3523
3532
3544
3558
3564
3570
3576
3581
3586
3591
3596
3602
3613
3632
3639
3660
3673 'copyright',
3674 'history_copyright',
3675 'googlesearch',
3676 'feedback-terms',
3677 'feedback-termsofuse',
3678];
3679
3704
3715
3728
3729// endregion -- End of language/charset settings
3730
3731/***************************************************************************/
3732// region Output format and skin settings
3738$wgMimeType = 'text/html';
3739
3749
3758
3766
3775
3791
3800
3813
3822
3828
3834$wgFallbackSkin = 'fallback';
3835
3847
3852
3881$wgFragmentMode = [ 'html5', 'legacy' ];
3882
3892
3924 "copyright" => [
3925 "copyright" => [], // placeholder for the built in copyright icon
3926 ],
3927 "poweredby" => [
3928 "mediawiki" => [
3929 // Defaults to point at
3930 // "$wgResourceBasePath/resources/assets/poweredby_mediawiki_88x31.png"
3931 // plus srcset for 1.5x, 2x resolution variants.
3932 "src" => null,
3933 "url" => "https://www.mediawiki.org/",
3934 "alt" => "Powered by MediaWiki",
3935 ]
3936 ],
3937];
3938
3946
3951
3964
3975
3983
3993
3994// endregion -- End of output format settings
3995
3996/***************************************************************************/
3997// region ResourceLoader settings
4308
4399
4411
4417
4435 'versioned' => 30 * 24 * 60 * 60, // 30 days
4436 'unversioned' => 5 * 60, // 5 minutes
4437];
4438
4446
4453
4460
4471
4486
4495
4505
4511
4519
4532
4543
4544// endregion -- End of ResourceLoader settings
4545
4546/***************************************************************************/
4547// region Page titles and redirects
4555
4564
4570$wgCanonicalNamespaceNames = NamespaceInfo::CANONICAL_NAMES;
4571
4599
4607
4630
4655$wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
4656
4665
4680
4686 NS_TALK => true,
4687 NS_USER => true,
4688 NS_USER_TALK => true,
4689 NS_PROJECT => true,
4690 NS_PROJECT_TALK => true,
4691 NS_FILE_TALK => true,
4692 NS_MEDIAWIKI => true,
4693 NS_MEDIAWIKI_TALK => true,
4694 NS_TEMPLATE => true,
4695 NS_TEMPLATE_TALK => true,
4696 NS_HELP => true,
4697 NS_HELP_TALK => true,
4699];
4700
4708
4716
4725
4732
4743$wgInvalidRedirectTargets = [ 'Filepath', 'Mypage', 'Mytalk', 'Redirect' ];
4744
4754
4760
4761// endregion -- End of title and interwiki settings
4762
4763/***************************************************************************/
4764// region Interwiki links and sites
4785
4793
4798
4818
4826
4831
4848
4855 'mediawiki' => MediaWikiSite::class,
4856];
4857
4858// endregion -- Interwiki links and sites
4859
4860/***************************************************************************/
4861// region Parser settings
4870
4876
4884
4889
4901 'bitcoin:', 'ftp://', 'ftps://', 'geo:', 'git://', 'gopher://', 'http://',
4902 'https://', 'irc://', 'ircs://', 'magnet:', 'mailto:', 'mms://', 'news:',
4903 'nntp://', 'redis://', 'sftp://', 'sip:', 'sips:', 'sms:', 'ssh://',
4904 'svn://', 'tel:', 'telnet://', 'urn:', 'worldwind://', 'xmpp:', '//'
4905];
4906
4911
4916
4930
4943
4954
4974
4982
4989
5000
5008
5014
5028$wgNoFollowDomainExceptions = [ 'mediawiki.org' ];
5029
5035
5040
5047
5053
5059
5064
5070
5078 'ISBN' => false,
5079 'PMID' => false,
5080 'RFC' => false
5081];
5082
5083// endregion -- end of parser settings
5084
5085/***************************************************************************/
5086// region Statistics and content analysis
5106
5115
5129
5135
5141
5147
5168
5183
5184// endregion -- End of statistics and content analysis
5185
5186/***************************************************************************/
5187// region User accounts, authentication
5196 'local' => [
5197 'class' => LocalIdLookup::class,
5198 'services' => [
5199 'MainConfig',
5200 'DBLoadBalancer',
5201 ]
5202 ],
5203];
5204
5210
5274 'policies' => [
5275 'bureaucrat' => [
5276 'MinimalPasswordLength' => 10,
5277 'MinimumPasswordLengthToLogin' => 1,
5278 ],
5279 'sysop' => [
5280 'MinimalPasswordLength' => 10,
5281 'MinimumPasswordLengthToLogin' => 1,
5282 ],
5283 'interface-admin' => [
5284 'MinimalPasswordLength' => 10,
5285 'MinimumPasswordLengthToLogin' => 1,
5286 ],
5287 'bot' => [
5288 'MinimalPasswordLength' => 10,
5289 'MinimumPasswordLengthToLogin' => 1,
5290 ],
5291 'default' => [
5292 'MinimalPasswordLength' => [ 'value' => 1, 'suggestChangeOnLogin' => true ],
5293 'PasswordCannotBeSubstringInUsername' => [
5294 'value' => true,
5295 'suggestChangeOnLogin' => true
5296 ],
5297 'PasswordCannotMatchDefaults' => [ 'value' => true, 'suggestChangeOnLogin' => true ],
5298 'MaximalPasswordLength' => [ 'value' => 4096, 'suggestChangeOnLogin' => true ],
5299 'PasswordNotInCommonList' => [ 'value' => true, 'suggestChangeOnLogin' => true ],
5300 ],
5301 ],
5302 'checks' => [
5303 'MinimalPasswordLength' => 'PasswordPolicyChecks::checkMinimalPasswordLength',
5304 'MinimumPasswordLengthToLogin' => 'PasswordPolicyChecks::checkMinimumPasswordLengthToLogin',
5305 'PasswordCannotBeSubstringInUsername' =>
5306 'PasswordPolicyChecks::checkPasswordCannotBeSubstringInUsername',
5307 'PasswordCannotMatchDefaults' => 'PasswordPolicyChecks::checkPasswordCannotMatchDefaults',
5308 'MaximalPasswordLength' => 'PasswordPolicyChecks::checkMaximalPasswordLength',
5309 'PasswordNotInCommonList' => 'PasswordPolicyChecks::checkPasswordNotInCommonList',
5310 ],
5311];
5312
5333
5339 'preauth' => [
5340 MediaWiki\Auth\ThrottlePreAuthenticationProvider::class => [
5341 'class' => MediaWiki\Auth\ThrottlePreAuthenticationProvider::class,
5342 'sort' => 0,
5343 ],
5344 ],
5345 'primaryauth' => [
5346 // TemporaryPasswordPrimaryAuthenticationProvider should come before
5347 // any other PasswordAuthenticationRequest-based
5348 // PrimaryAuthenticationProvider (or at least any that might return
5349 // FAIL rather than ABSTAIN for a wrong password), or password reset
5350 // won't work right. Do not remove this (or change the key) or
5351 // auto-configuration of other such providers in extensions will
5352 // probably auto-insert themselves in the wrong place.
5353 MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::class => [
5354 'class' => MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::class,
5355 'services' => [
5356 'DBLoadBalancer',
5357 ],
5358 'args' => [ [
5359 // Fall through to LocalPasswordPrimaryAuthenticationProvider
5360 'authoritative' => false,
5361 ] ],
5362 'sort' => 0,
5363 ],
5364 MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::class => [
5365 'class' => MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::class,
5366 'services' => [
5367 'DBLoadBalancer',
5368 ],
5369 'args' => [ [
5370 // Last one should be authoritative, or else the user will get
5371 // a less-than-helpful error message (something like "supplied
5372 // authentication info not supported" rather than "wrong
5373 // password") if it too fails.
5374 'authoritative' => true,
5375 ] ],
5376 'sort' => 100,
5377 ],
5378 ],
5379 'secondaryauth' => [
5380 MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider::class => [
5381 'class' => MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider::class,
5382 'sort' => 0,
5383 ],
5384 MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::class => [
5385 'class' => MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::class,
5386 'sort' => 100,
5387 ],
5388 // Linking during login is experimental, enable at your own risk - T134952
5389 // MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class => [
5390 // 'class' => MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class,
5391 // 'sort' => 100,
5392 // ],
5393 MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::class => [
5394 'class' => MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::class,
5395 'services' => [
5396 'DBLoadBalancer',
5397 ],
5398 'sort' => 200,
5399 ],
5400 ],
5401];
5402
5411$wgRememberMe = 'choose'; // RememberMeAuthenticationRequest::CHOOSE_REMEMBER
5412
5452 'default' => 300,
5453];
5454
5471 'default' => true,
5472];
5473
5484 \MediaWiki\Auth\TemporaryPasswordAuthenticationRequest::class
5485];
5486
5497 \MediaWiki\Auth\PasswordAuthenticationRequest::class,
5498];
5499
5506
5519
5526
5536
5557 'A' => [
5558 'class' => MWOldPassword::class,
5559 ],
5560 'B' => [
5561 'class' => MWSaltedPassword::class,
5562 ],
5563 'pbkdf2-legacyA' => [
5564 'class' => LayeredParameterizedPassword::class,
5565 'types' => [
5566 'A',
5567 'pbkdf2',
5568 ],
5569 ],
5570 'pbkdf2-legacyB' => [
5571 'class' => LayeredParameterizedPassword::class,
5572 'types' => [
5573 'B',
5574 'pbkdf2',
5575 ],
5576 ],
5577 'bcrypt' => [
5578 'class' => BcryptPassword::class,
5579 'cost' => 9,
5580 ],
5581 'pbkdf2' => [
5582 'class' => Pbkdf2Password::class,
5583 'algo' => 'sha512',
5584 'cost' => '30000',
5585 'length' => '64',
5586 ],
5587 'argon2' => [
5588 'class' => Argon2Password::class,
5589
5590 // Algorithm used:
5591 // * 'argon2i' is optimized against side-channel attacks (PHP 7.2+)
5592 // * 'argon2id' is optimized against both side-channel and GPU cracking (PHP 7.3+)
5593 // * 'auto' to use best available algorithm. If you're using more than one server, be
5594 // careful when you're mixing PHP versions because newer PHP might generate hashes that
5595 // older versions might would not understand.
5596 'algo' => 'auto',
5597
5598 // The parameters below are the same as options accepted by password_hash().
5599 // Set them to override that function's defaults.
5600 //
5601 // 'memory_cost' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST,
5602 // 'time_cost' => PASSWORD_ARGON2_DEFAULT_TIME_COST,
5603 // 'threads' => PASSWORD_ARGON2_DEFAULT_THREADS,
5604 ],
5605];
5606
5614 'username' => true,
5615 'email' => true,
5616];
5617
5622
5634
5642
5648
5655 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
5656 'Conversion script', // Used for the old Wikipedia software upgrade
5657 'Maintenance script', // Maintenance scripts which perform editing, image import script
5658 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
5659 'ScriptImporter', // Default user name used by maintenance/importSiteScripts.php
5660 'Unknown user', // Used in WikiImporter & RevisionStore for revisions with no author and in User for invalid user id
5661 'msg:double-redirect-fixer', // Automatic double redirect fix
5662 'msg:usermessage-editor', // Default user for leaving user messages
5663 'msg:proxyblocker', // For $wgProxyList and Special:Blockme (removed in 1.22)
5664 'msg:sorbs', // For $wgEnableDnsBlacklist etc.
5665 'msg:spambot_username', // Used by cleanupSpam.php
5666 'msg:autochange-username', // Used by anon category RC entries (parser functions, Lua & purges)
5667];
5668
5676 'ccmeonemails' => 0,
5677 'date' => 'default',
5678 'diffonly' => 0,
5679 'disablemail' => 0,
5680 'editfont' => 'monospace',
5681 'editondblclick' => 0,
5682 'editsectiononrightclick' => 0,
5683 'email-allow-new-users' => 1,
5684 'enotifminoredits' => 0,
5685 'enotifrevealaddr' => 0,
5686 'enotifusertalkpages' => 1,
5687 'enotifwatchlistpages' => 1,
5688 'extendwatchlist' => 1,
5689 'fancysig' => 0,
5690 'forceeditsummary' => 0,
5691 'gender' => 'unknown',
5692 'hideminor' => 0,
5693 'hidepatrolled' => 0,
5694 'hidecategorization' => 1,
5695 'imagesize' => 2,
5696 'minordefault' => 0,
5697 'newpageshidepatrolled' => 0,
5698 'nickname' => '',
5699 'pst-cssjs' => 1,
5700 'norollbackdiff' => 0,
5701 'numberheadings' => 0,
5702 'previewonfirst' => 0,
5703 'previewontop' => 1,
5704 'rcdays' => 7,
5705 'rcenhancedfilters-disable' => 0,
5706 'rclimit' => 50,
5707 'search-match-redirect' => true,
5708 'showhiddencats' => 0,
5709 'shownumberswatching' => 1,
5710 'showrollbackconfirmation' => 0,
5711 'skin' => false,
5712 'thumbsize' => 5,
5713 'underline' => 2,
5714 'uselivepreview' => 0,
5715 'usenewrc' => 1,
5716 'watchcreations' => 1,
5717 'watchdefault' => 1,
5718 'watchdeletion' => 0,
5719 'watchuploads' => 1,
5720 'watchlistdays' => 7.0,
5721 'watchlisthideanons' => 0,
5722 'watchlisthidebots' => 0,
5723 'watchlisthideliu' => 0,
5724 'watchlisthideminor' => 0,
5725 'watchlisthideown' => 0,
5726 'watchlisthidepatrolled' => 0,
5727 'watchlisthidecategorization' => 1,
5728 'watchlistreloadautomatically' => 0,
5729 'watchlistunwatchlinks' => 0,
5730 'watchmoves' => 0,
5731 'watchrollback' => 0,
5732 'wlenhancedfilters-disable' => 0,
5733 'wllimit' => 250,
5734 'useeditwarning' => 1,
5735 'prefershttps' => 1,
5736 'requireemail' => 0,
5737 'skin-responsive' => 1,
5738];
5739
5744
5751
5762
5770
5782
5792 MediaWiki\Session\CookieSessionProvider::class => [
5793 'class' => MediaWiki\Session\CookieSessionProvider::class,
5794 'args' => [ [
5795 'priority' => 30,
5796 'callUserSetCookiesHook' => true,
5797 ] ],
5798 ],
5799 MediaWiki\Session\BotPasswordSessionProvider::class => [
5800 'class' => MediaWiki\Session\BotPasswordSessionProvider::class,
5801 'args' => [ [
5802 'priority' => 75,
5803 ] ],
5804 ],
5805];
5806
5815
5816// endregion -- end user accounts
5817
5818/***************************************************************************/
5819// region User rights, access control and monitoring
5826
5835
5851 'IPv4' => 16, # Blocks larger than a /16 (64k addresses) will not be allowed
5852 'IPv6' => 19,
5853];
5854
5863
5871
5893
5921
5927
5933
5959
5961// Implicit group for all visitors
5962$wgGroupPermissions['*']['createaccount'] = true;
5963$wgGroupPermissions['*']['read'] = true;
5964$wgGroupPermissions['*']['edit'] = true;
5965$wgGroupPermissions['*']['createpage'] = true;
5966$wgGroupPermissions['*']['createtalk'] = true;
5967$wgGroupPermissions['*']['writeapi'] = true;
5968$wgGroupPermissions['*']['viewmywatchlist'] = true;
5969$wgGroupPermissions['*']['editmywatchlist'] = true;
5970$wgGroupPermissions['*']['viewmyprivateinfo'] = true;
5971$wgGroupPermissions['*']['editmyprivateinfo'] = true;
5972$wgGroupPermissions['*']['editmyoptions'] = true;
5973# $wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled
5974
5975// Implicit group for all logged-in accounts
5976$wgGroupPermissions['user']['move'] = true;
5977$wgGroupPermissions['user']['move-subpages'] = true;
5978$wgGroupPermissions['user']['move-rootuserpages'] = true; // can move root userpages
5979$wgGroupPermissions['user']['move-categorypages'] = true;
5980$wgGroupPermissions['user']['movefile'] = true;
5981$wgGroupPermissions['user']['read'] = true;
5982$wgGroupPermissions['user']['edit'] = true;
5983$wgGroupPermissions['user']['createpage'] = true;
5984$wgGroupPermissions['user']['createtalk'] = true;
5985$wgGroupPermissions['user']['writeapi'] = true;
5986$wgGroupPermissions['user']['upload'] = true;
5987$wgGroupPermissions['user']['reupload'] = true;
5988$wgGroupPermissions['user']['reupload-shared'] = true;
5989$wgGroupPermissions['user']['minoredit'] = true;
5990$wgGroupPermissions['user']['editmyusercss'] = true;
5991$wgGroupPermissions['user']['editmyuserjson'] = true;
5992$wgGroupPermissions['user']['editmyuserjs'] = true;
5993$wgGroupPermissions['user']['editmyuserjsredirect'] = true;
5994$wgGroupPermissions['user']['purge'] = true;
5995$wgGroupPermissions['user']['sendemail'] = true;
5996$wgGroupPermissions['user']['applychangetags'] = true;
5997$wgGroupPermissions['user']['changetags'] = true;
5998$wgGroupPermissions['user']['editcontentmodel'] = true;
5999
6000// Implicit group for accounts that pass $wgAutoConfirmAge and $wgAutoConfirmCount
6001$wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
6002$wgGroupPermissions['autoconfirmed']['editsemiprotected'] = true;
6003
6004// Users with bot privilege can have their edits hidden
6005// from various log pages by default
6006$wgGroupPermissions['bot']['bot'] = true;
6007$wgGroupPermissions['bot']['autoconfirmed'] = true;
6008$wgGroupPermissions['bot']['editsemiprotected'] = true;
6009$wgGroupPermissions['bot']['nominornewtalk'] = true;
6010$wgGroupPermissions['bot']['autopatrol'] = true;
6011$wgGroupPermissions['bot']['suppressredirect'] = true;
6012$wgGroupPermissions['bot']['apihighlimits'] = true;
6013$wgGroupPermissions['bot']['writeapi'] = true;
6014
6015// Most extra permission abilities go to this group
6016$wgGroupPermissions['sysop']['block'] = true;
6017$wgGroupPermissions['sysop']['createaccount'] = true;
6018$wgGroupPermissions['sysop']['delete'] = true;
6019// can be separately configured for pages with > $wgDeleteRevisionsLimit revs
6020$wgGroupPermissions['sysop']['bigdelete'] = true;
6021// can view deleted history entries, but not see or restore the text
6022$wgGroupPermissions['sysop']['deletedhistory'] = true;
6023// can view deleted revision text
6024$wgGroupPermissions['sysop']['deletedtext'] = true;
6025$wgGroupPermissions['sysop']['undelete'] = true;
6026$wgGroupPermissions['sysop']['editinterface'] = true;
6027$wgGroupPermissions['sysop']['editsitejson'] = true;
6028$wgGroupPermissions['sysop']['edituserjson'] = true;
6029$wgGroupPermissions['sysop']['import'] = true;
6030$wgGroupPermissions['sysop']['importupload'] = true;
6031$wgGroupPermissions['sysop']['move'] = true;
6032$wgGroupPermissions['sysop']['move-subpages'] = true;
6033$wgGroupPermissions['sysop']['move-rootuserpages'] = true;
6034$wgGroupPermissions['sysop']['move-categorypages'] = true;
6035$wgGroupPermissions['sysop']['patrol'] = true;
6036$wgGroupPermissions['sysop']['autopatrol'] = true;
6037$wgGroupPermissions['sysop']['protect'] = true;
6038$wgGroupPermissions['sysop']['editprotected'] = true;
6039$wgGroupPermissions['sysop']['rollback'] = true;
6040$wgGroupPermissions['sysop']['upload'] = true;
6041$wgGroupPermissions['sysop']['reupload'] = true;
6042$wgGroupPermissions['sysop']['reupload-shared'] = true;
6043$wgGroupPermissions['sysop']['unwatchedpages'] = true;
6044$wgGroupPermissions['sysop']['autoconfirmed'] = true;
6045$wgGroupPermissions['sysop']['editsemiprotected'] = true;
6046$wgGroupPermissions['sysop']['ipblock-exempt'] = true;
6047$wgGroupPermissions['sysop']['blockemail'] = true;
6048$wgGroupPermissions['sysop']['markbotedits'] = true;
6049$wgGroupPermissions['sysop']['apihighlimits'] = true;
6050$wgGroupPermissions['sysop']['browsearchive'] = true;
6051$wgGroupPermissions['sysop']['noratelimit'] = true;
6052$wgGroupPermissions['sysop']['movefile'] = true;
6053$wgGroupPermissions['sysop']['unblockself'] = true;
6054$wgGroupPermissions['sysop']['suppressredirect'] = true;
6055# $wgGroupPermissions['sysop']['pagelang'] = true;
6056# $wgGroupPermissions['sysop']['upload_by_url'] = true;
6057$wgGroupPermissions['sysop']['mergehistory'] = true;
6058$wgGroupPermissions['sysop']['managechangetags'] = true;
6059$wgGroupPermissions['sysop']['deletechangetags'] = true;
6060
6061$wgGroupPermissions['interface-admin']['editinterface'] = true;
6062$wgGroupPermissions['interface-admin']['editsitecss'] = true;
6063$wgGroupPermissions['interface-admin']['editsitejson'] = true;
6064$wgGroupPermissions['interface-admin']['editsitejs'] = true;
6065$wgGroupPermissions['interface-admin']['editusercss'] = true;
6066$wgGroupPermissions['interface-admin']['edituserjson'] = true;
6067$wgGroupPermissions['interface-admin']['edituserjs'] = true;
6068
6069// Permission to change users' group assignments
6070$wgGroupPermissions['bureaucrat']['userrights'] = true;
6071$wgGroupPermissions['bureaucrat']['noratelimit'] = true;
6072// Permission to change users' groups assignments across wikis
6073# $wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
6074// Permission to export pages including linked pages regardless of $wgExportMaxLinkDepth
6075# $wgGroupPermissions['bureaucrat']['override-export-depth'] = true;
6076
6077# $wgGroupPermissions['sysop']['deletelogentry'] = true;
6078# $wgGroupPermissions['sysop']['deleterevision'] = true;
6079// To hide usernames from users and Sysops
6080$wgGroupPermissions['suppress']['hideuser'] = true;
6081// To hide revisions/log items from users and Sysops
6082$wgGroupPermissions['suppress']['suppressrevision'] = true;
6083// To view revisions/log items hidden from users and Sysops
6084$wgGroupPermissions['suppress']['viewsuppressed'] = true;
6085// For private suppression log access
6086$wgGroupPermissions['suppress']['suppressionlog'] = true;
6087// Basic rights for revision delete
6088$wgGroupPermissions['suppress']['deleterevision'] = true;
6089$wgGroupPermissions['suppress']['deletelogentry'] = true;
6090
6097# $wgGroupPermissions['developer']['siteadmin'] = true;
6098
6111
6115$wgImplicitGroups = [ '*', 'user', 'autoconfirmed' ];
6116
6139
6144
6152$wgRestrictionTypes = [ 'create', 'edit', 'move', 'upload' ];
6153
6165$wgRestrictionLevels = [ '', 'autoconfirmed', 'sysop' ];
6166
6177
6191
6200
6211
6233
6244
6303 'autoconfirmed' => [ '&',
6306 ],
6307];
6308
6328 'onEdit' => [],
6329];
6330
6336
6360
6365
6371
6377
6383
6392
6415 'count' => 0,
6416 'seconds' => 86400,
6417] ];
6418
6431
6436
6443
6467$wgDnsBlacklistUrls = [ 'http.dnsbl.sorbs.net.' ];
6468
6478
6484
6493
6500
6540 // Page edits
6541 'edit' => [
6542 'ip' => [ 8, 60 ],
6543 'newbie' => [ 8, 60 ],
6544 'user' => [ 90, 60 ],
6545 ],
6546 // Page moves
6547 'move' => [
6548 'newbie' => [ 2, 120 ],
6549 'user' => [ 8, 60 ],
6550 ],
6551 // File uploads
6552 'upload' => [
6553 'ip' => [ 8, 60 ],
6554 'newbie' => [ 8, 60 ],
6555 ],
6556 // Page rollbacks
6557 'rollback' => [
6558 'user' => [ 10, 60 ],
6559 'newbie' => [ 5, 120 ]
6560 ],
6561 // Triggering password resets emails
6562 'mailpassword' => [
6563 'ip' => [ 5, 3600 ],
6564 ],
6565 // Emailing other users using MediaWiki
6566 'emailuser' => [
6567 'ip' => [ 5, 86400 ],
6568 'newbie' => [ 5, 86400 ],
6569 'user' => [ 20, 86400 ],
6570 ],
6571 'changeemail' => [
6572 'ip-all' => [ 10, 3600 ],
6573 'user' => [ 4, 86400 ]
6574 ],
6575 // since 1.33 - rate limit email confirmations
6576 'confirmemail' => [
6577 'ip-all' => [ 10, 3600 ],
6578 'user' => [ 4, 86400 ]
6579 ],
6580 // Purging pages
6581 'purge' => [
6582 'ip' => [ 30, 60 ],
6583 'user' => [ 30, 60 ],
6584 ],
6585 // Purges of link tables
6586 'linkpurge' => [
6587 'ip' => [ 30, 60 ],
6588 'user' => [ 30, 60 ],
6589 ],
6590 // Files rendered via thumb.php or thumb_handler.php
6591 'renderfile' => [
6592 'ip' => [ 700, 30 ],
6593 'user' => [ 700, 30 ],
6594 ],
6595 // Same as above but for non-standard thumbnails
6596 'renderfile-nonstandard' => [
6597 'ip' => [ 70, 30 ],
6598 'user' => [ 70, 30 ],
6599 ],
6600 // Stashing edits into cache before save
6601 'stashedit' => [
6602 'ip' => [ 30, 60 ],
6603 'newbie' => [ 30, 60 ],
6604 ],
6605 // Adding or removing change tags
6606 'changetag' => [
6607 'ip' => [ 8, 60 ],
6608 'newbie' => [ 8, 60 ],
6609 ],
6610 // Changing the content model of a page
6611 'editcontentmodel' => [
6612 'newbie' => [ 2, 120 ],
6613 'user' => [ 8, 60 ],
6614 ],
6615];
6616
6622
6629
6635
6649 // Short term limit
6650 [ 'count' => 5, 'seconds' => 300 ],
6651 // Long term limit. We need to balance the risk
6652 // of somebody using this as a DoS attack to lock someone
6653 // out of their account, and someone doing a brute force attack.
6654 [ 'count' => 150, 'seconds' => 60 * 60 * 48 ],
6655];
6656
6668
6669// @TODO: clean up grants
6670// @TODO: auto-include read/editsemiprotected rights?
6671
6672$wgGrantPermissions['basic']['autocreateaccount'] = true;
6673$wgGrantPermissions['basic']['autoconfirmed'] = true;
6674$wgGrantPermissions['basic']['autopatrol'] = true;
6675$wgGrantPermissions['basic']['editsemiprotected'] = true;
6676$wgGrantPermissions['basic']['ipblock-exempt'] = true;
6677$wgGrantPermissions['basic']['nominornewtalk'] = true;
6678$wgGrantPermissions['basic']['patrolmarks'] = true;
6679$wgGrantPermissions['basic']['purge'] = true;
6680$wgGrantPermissions['basic']['read'] = true;
6681$wgGrantPermissions['basic']['writeapi'] = true;
6682
6683$wgGrantPermissions['highvolume']['bot'] = true;
6684$wgGrantPermissions['highvolume']['apihighlimits'] = true;
6685$wgGrantPermissions['highvolume']['noratelimit'] = true;
6686$wgGrantPermissions['highvolume']['markbotedits'] = true;
6687
6688$wgGrantPermissions['import']['import'] = true;
6689$wgGrantPermissions['import']['importupload'] = true;
6690
6691$wgGrantPermissions['editpage']['edit'] = true;
6692$wgGrantPermissions['editpage']['minoredit'] = true;
6693$wgGrantPermissions['editpage']['applychangetags'] = true;
6694$wgGrantPermissions['editpage']['changetags'] = true;
6695$wgGrantPermissions['editpage']['editcontentmodel'] = true;
6696
6697$wgGrantPermissions['editprotected'] = $wgGrantPermissions['editpage'];
6698$wgGrantPermissions['editprotected']['editprotected'] = true;
6699
6700// FIXME: Rename editmycssjs to editmyconfig
6701$wgGrantPermissions['editmycssjs'] = $wgGrantPermissions['editpage'];
6702$wgGrantPermissions['editmycssjs']['editmyusercss'] = true;
6703$wgGrantPermissions['editmycssjs']['editmyuserjson'] = true;
6704$wgGrantPermissions['editmycssjs']['editmyuserjs'] = true;
6705
6706$wgGrantPermissions['editmyoptions']['editmyoptions'] = true;
6707$wgGrantPermissions['editmyoptions']['editmyuserjson'] = true;
6708
6709$wgGrantPermissions['editinterface'] = $wgGrantPermissions['editpage'];
6710$wgGrantPermissions['editinterface']['editinterface'] = true;
6711$wgGrantPermissions['editinterface']['edituserjson'] = true;
6712$wgGrantPermissions['editinterface']['editsitejson'] = true;
6713
6714$wgGrantPermissions['editsiteconfig'] = $wgGrantPermissions['editinterface'];
6715$wgGrantPermissions['editsiteconfig']['editusercss'] = true;
6716$wgGrantPermissions['editsiteconfig']['edituserjs'] = true;
6717$wgGrantPermissions['editsiteconfig']['editsitecss'] = true;
6718$wgGrantPermissions['editsiteconfig']['editsitejs'] = true;
6719
6720$wgGrantPermissions['createeditmovepage'] = $wgGrantPermissions['editpage'];
6721$wgGrantPermissions['createeditmovepage']['createpage'] = true;
6722$wgGrantPermissions['createeditmovepage']['createtalk'] = true;
6723$wgGrantPermissions['createeditmovepage']['delete-redirect'] = true;
6724$wgGrantPermissions['createeditmovepage']['move'] = true;
6725$wgGrantPermissions['createeditmovepage']['move-rootuserpages'] = true;
6726$wgGrantPermissions['createeditmovepage']['move-subpages'] = true;
6727$wgGrantPermissions['createeditmovepage']['move-categorypages'] = true;
6728$wgGrantPermissions['createeditmovepage']['suppressredirect'] = true;
6729
6730$wgGrantPermissions['uploadfile']['upload'] = true;
6731$wgGrantPermissions['uploadfile']['reupload-own'] = true;
6732
6733$wgGrantPermissions['uploadeditmovefile'] = $wgGrantPermissions['uploadfile'];
6734$wgGrantPermissions['uploadeditmovefile']['reupload'] = true;
6735$wgGrantPermissions['uploadeditmovefile']['reupload-shared'] = true;
6736$wgGrantPermissions['uploadeditmovefile']['upload_by_url'] = true;
6737$wgGrantPermissions['uploadeditmovefile']['movefile'] = true;
6738$wgGrantPermissions['uploadeditmovefile']['suppressredirect'] = true;
6739
6740$wgGrantPermissions['patrol']['patrol'] = true;
6741
6742$wgGrantPermissions['rollback']['rollback'] = true;
6743
6744$wgGrantPermissions['blockusers']['block'] = true;
6745$wgGrantPermissions['blockusers']['blockemail'] = true;
6746
6747$wgGrantPermissions['viewdeleted']['browsearchive'] = true;
6748$wgGrantPermissions['viewdeleted']['deletedhistory'] = true;
6749$wgGrantPermissions['viewdeleted']['deletedtext'] = true;
6750
6751$wgGrantPermissions['viewrestrictedlogs']['suppressionlog'] = true;
6752
6754 $wgGrantPermissions['viewdeleted'];
6755$wgGrantPermissions['delete']['delete'] = true;
6756$wgGrantPermissions['delete']['bigdelete'] = true;
6757$wgGrantPermissions['delete']['deletelogentry'] = true;
6758$wgGrantPermissions['delete']['deleterevision'] = true;
6759$wgGrantPermissions['delete']['undelete'] = true;
6760
6761$wgGrantPermissions['oversight']['suppressrevision'] = true;
6762$wgGrantPermissions['oversight']['viewsuppressed'] = true;
6763
6764$wgGrantPermissions['protect'] = $wgGrantPermissions['editprotected'];
6765$wgGrantPermissions['protect']['protect'] = true;
6766
6767$wgGrantPermissions['viewmywatchlist']['viewmywatchlist'] = true;
6768
6769$wgGrantPermissions['editmywatchlist']['editmywatchlist'] = true;
6770
6771$wgGrantPermissions['sendemail']['sendemail'] = true;
6772
6773$wgGrantPermissions['createaccount']['createaccount'] = true;
6774
6775$wgGrantPermissions['privateinfo']['viewmyprivateinfo'] = true;
6776
6777$wgGrantPermissions['mergehistory']['mergehistory'] = true;
6778
6784 // Hidden grants are implicitly present
6785 'basic' => 'hidden',
6786
6787 'editpage' => 'page-interaction',
6788 'createeditmovepage' => 'page-interaction',
6789 'editprotected' => 'page-interaction',
6790 'patrol' => 'page-interaction',
6791
6792 'uploadfile' => 'file-interaction',
6793 'uploadeditmovefile' => 'file-interaction',
6794
6795 'sendemail' => 'email',
6796
6797 'viewmywatchlist' => 'watchlist-interaction',
6798 'editviewmywatchlist' => 'watchlist-interaction',
6799
6800 'editmycssjs' => 'customization',
6801 'editmyoptions' => 'customization',
6802
6803 'editinterface' => 'administration',
6804 'editsiteconfig' => 'administration',
6805 'rollback' => 'administration',
6806 'blockusers' => 'administration',
6807 'delete' => 'administration',
6808 'viewdeleted' => 'administration',
6809 'viewrestrictedlogs' => 'administration',
6810 'protect' => 'administration',
6811 'oversight' => 'administration',
6812 'createaccount' => 'administration',
6813 'mergehistory' => 'administration',
6814 'import' => 'administration',
6815
6816 'highvolume' => 'high-volume',
6817
6818 'privateinfo' => 'private-information',
6819];
6820
6826
6833
6843
6844// endregion -- end of user rights settings
6845
6846/***************************************************************************/
6847// region Security
6850// This section is for miscellaneous security settings.
6851// For password restrictions and encryption settings, see the section
6852// "User accounts, authentication".
6853
6858
6865
6872
6880
6885
6890
6896
6917
6929
6953
6961
6971 'https://3hub.co' => true,
6972 'https://morepro.info' => true,
6973 'https://p.ato.mx' => true,
6974 'https://s.ato.mx' => true,
6975 'https://adserver.adtech.de' => true,
6976 'https://ums.adtechus.com' => true,
6977 'https://cas.criteo.com' => true,
6978 'https://cat.nl.eu.criteo.com' => true,
6979 'https://atpixel.alephd.com' => true,
6980 'https://rtb.metrigo.com' => true,
6981 'https://d5p.de17a.com' => true,
6982 'https://ad.lkqd.net/vpaid/vpaid.js' => true,
6983 'https://ad.lkqd.net/vpaid/vpaid.js?fusion=1.0' => true,
6984 'https://t.lkqd.net/t' => true,
6985 'chrome-extension' => true,
6986];
6987
6997
7013
7021
7030
7040
7048
7049// endregion -- end of security
7050
7051/***************************************************************************/
7052// region Cookie settings
7059
7067
7073
7079
7091
7099
7106
7113
7125
7135
7140
7145
7154
7163
7164// endregion -- end of cookie settings
7165
7166/***************************************************************************/
7167// region Profiling, testing and debugging
7169// See $wgProfiler for how to enable profiling.
7170
7177
7182
7189
7196
7206
7215
7222 // HTTP GET/HEAD requests.
7223 // Primary queries should not happen on GET requests
7224 'GET' => [
7225 'masterConns' => 0,
7226 'writes' => 0,
7227 'readQueryTime' => 5,
7228 'readQueryRows' => 10000
7229 ],
7230 // HTTP POST requests.
7231 // Primary reads and writes will happen for a subset of these.
7232 'POST' => [
7233 'readQueryTime' => 5,
7234 'writeQueryTime' => 1,
7235 'readQueryRows' => 100000,
7236 'maxAffected' => 1000
7237 ],
7238 'POST-nonwrite' => [
7239 'writes' => 0,
7240 'readQueryTime' => 5,
7241 'readQueryRows' => 10000
7242 ],
7243 // Deferred updates that run after HTTP response is sent for GET requests
7244 'PostSend-GET' => [
7245 'readQueryTime' => 5,
7246 'writeQueryTime' => 1,
7247 'readQueryRows' => 10000,
7248 'maxAffected' => 1000,
7249 // Log primary queries under the post-send entry point as they are discouraged
7250 'masterConns' => 0,
7251 'writes' => 0,
7252 ],
7253 // Deferred updates that run after HTTP response is sent for POST requests
7254 'PostSend-POST' => [
7255 'readQueryTime' => 5,
7256 'writeQueryTime' => 1,
7257 'readQueryRows' => 100000,
7258 'maxAffected' => 1000
7259 ],
7260 // Background job runner
7261 'JobRunner' => [
7262 'readQueryTime' => 30,
7263 'writeQueryTime' => 5,
7264 'readQueryRows' => 100000,
7265 'maxAffected' => 500 // ballpark of $wgUpdateRowsPerQuery
7266 ],
7267 // Command-line scripts
7268 'Maintenance' => [
7269 'writeQueryTime' => 5,
7270 'maxAffected' => 1000
7271 ]
7272];
7273
7305
7328 'class' => \MediaWiki\Logger\LegacySpi::class,
7329];
7330
7337
7342
7350
7355
7361
7366
7373
7379
7386
7454
7466
7475
7483
7490
7505
7510
7516
7525
7526// endregion -- end of profiling, testing and debugging
7527
7528/***************************************************************************/
7529// region Search
7536
7542
7547$wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]';
7548
7560
7570 'application/x-suggestions+json' => false,
7571 'application/x-suggestions+xml' => false,
7572];
7573
7581
7587
7592
7597
7603
7614 NS_MAIN => true,
7615];
7616
7622
7639
7646
7662
7669
7680
7691
7700
7701// endregion -- end of search settings
7702
7703/***************************************************************************/
7704// region Edit user interface
7711$wgDiff3 = '/usr/bin/diff3';
7712
7716$wgDiff = '/usr/bin/diff';
7717
7724 NS_CATEGORY => true
7725];
7726
7733
7740
7741// endregion -- end edit UI
7742
7743/***************************************************************************/
7744// region Maintenance
7746// See also $wgSiteNotice
7747
7752if ( !isset( $wgCommandLineMode ) ) {
7753 $wgCommandLineMode = false;
7754}
7761
7771
7778
7787
7798
7802$wgGitBin = '/usr/bin/git';
7803
7818 'https://(?:[a-z0-9_]+@)?gerrit.wikimedia.org/r/(?:p/)?(.*)' =>
7819 'https://gerrit.wikimedia.org/g/%R/+/%H',
7820 'ssh://(?:[a-z0-9_]+@)?gerrit.wikimedia.org:29418/(.*)' =>
7821 'https://gerrit.wikimedia.org/g/%R/+/%H',
7822];
7823
7824// endregion -- End of maintenance
7825
7826/***************************************************************************/
7827// region Recent changes, new pages, watchlist and history
7835$wgRCMaxAge = 90 * 24 * 3600;
7836
7842$wgWatchersMaxAge = 180 * 24 * 3600;
7843
7851
7860
7865$wgRCLinkLimits = [ 50, 100, 250, 500 ];
7866
7873$wgRCLinkDays = [ 1, 3, 7, 14, 30 ];
7874
7936
7943 'redis' => RedisPubSubFeedEngine::class,
7944 'udp' => UDPRCFeedEngine::class,
7945];
7946
7959
7969
7976
7985
7996
8000$wgFeed = true;
8001
8007
8017
8023
8037
8044 'rss' => RSSFeed::class,
8045 'atom' => AtomFeed::class,
8046];
8047
8053
8058
8063
8070
8076
8082
8088
8109 'mw-contentmodelchange' => true,
8110 'mw-new-redirect' => true,
8111 'mw-removed-redirect' => true,
8112 'mw-changed-redirect-target' => true,
8113 'mw-blank' => true,
8114 'mw-replace' => true,
8115 'mw-rollback' => true,
8116 'mw-undo' => true,
8117 'mw-manual-revert' => true,
8118 'mw-reverted' => true,
8119 'mw-server-side-upload' => true,
8120 'mw-add-media' => false,
8121 'mw-remove-media' => false,
8122];
8123
8132
8158 'newpage' => [
8159 'letter' => 'newpageletter',
8160 'title' => 'recentchanges-label-newpage',
8161 'legend' => 'recentchanges-legend-newpage',
8162 'grouping' => 'any',
8163 ],
8164 'minor' => [
8165 'letter' => 'minoreditletter',
8166 'title' => 'recentchanges-label-minor',
8167 'legend' => 'recentchanges-legend-minor',
8168 'class' => 'minoredit',
8169 'grouping' => 'all',
8170 ],
8171 'bot' => [
8172 'letter' => 'boteditletter',
8173 'title' => 'recentchanges-label-bot',
8174 'legend' => 'recentchanges-legend-bot',
8175 'class' => 'botedit',
8176 'grouping' => 'all',
8177 ],
8178 'unpatrolled' => [
8179 'letter' => 'unpatrolledletter',
8180 'title' => 'recentchanges-label-unpatrolled',
8181 'legend' => 'recentchanges-legend-unpatrolled',
8182 'grouping' => 'any',
8183 ],
8184];
8185
8193
8206
8222
8223// endregion -- end RC/watchlist
8224
8225/***************************************************************************/
8226// region Copyright and credits settings
8237
8244
8252
8257
8262
8271
8277
8278// endregion -- end of copyright and credits settings
8279
8280/***************************************************************************/
8281// region Import / Export
8307
8316
8323
8330
8335
8348
8353
8358
8366
8372
8373// endregion -- end of import/export
8374
8375/***************************************************************************/
8376// region Extensions
8384
8412
8439
8446
8462
8467
8493
8501
8506
8515
8575
8612
8625 __DIR__ . '/ServiceWiring.php'
8626];
8627
8636 'deletePage' => DeletePageJob::class,
8637 'refreshLinks' => RefreshLinksJob::class,
8638 'deleteLinks' => DeleteLinksJob::class,
8639 'htmlCacheUpdate' => HTMLCacheUpdateJob::class,
8640 'sendMail' => EmaillingJob::class,
8641 'enotifNotify' => EnotifNotifyJob::class,
8642 'fixDoubleRedirect' => DoubleRedirectJob::class,
8643 'AssembleUploadChunks' => AssembleUploadChunksJob::class,
8644 'PublishStashedFile' => PublishStashedFileJob::class,
8645 'ThumbnailRender' => ThumbnailRenderJob::class,
8646 'recentChangesUpdate' => RecentChangesUpdateJob::class,
8647 'refreshLinksPrioritized' => RefreshLinksJob::class,
8648 'refreshLinksDynamic' => RefreshLinksJob::class,
8649 'activityUpdateJob' => ActivityUpdateJob::class,
8650 'categoryMembershipChange' => CategoryMembershipChangeJob::class,
8651 'clearUserWatchlist' => ClearUserWatchlistJob::class,
8652 'watchlistExpiry' => WatchlistExpiryJob::class,
8653 'cdnPurge' => CdnPurgeJob::class,
8654 'userGroupExpiry' => UserGroupExpiryJob::class,
8655 'clearWatchlistNotifications' => ClearWatchlistNotificationsJob::class,
8656 'userOptionsUpdate' => UserOptionsUpdateJob::class,
8657 'revertedTagUpdate' => RevertedTagUpdateJob::class,
8658 'enqueue' => EnqueueJob::class, // local queue for multi-DC setups
8659 'null' => NullJob::class,
8660 'userEditCountInit' => UserEditCountInitJob::class,
8661];
8662
8674$wgJobTypesExcludedFromDefaultQueue = [ 'AssembleUploadChunks', 'PublishStashedFile' ];
8675
8686
8701
8709 'default' => [ 'class' => JobQueueDB::class, 'order' => 'random', 'claimTTL' => 3600 ],
8710];
8711
8724
8730 'Statistics' => [ SiteStatsUpdate::class, 'cacheUpdate' ]
8731];
8732
8741 'hiddencat' => 'categorylinks',
8742];
8743
8744// endregion -- End extensions
8745
8746/***************************************************************************/
8747// region Categories
8754
8760
8765
8792
8809
8810// endregion -- End categories
8811
8812/***************************************************************************/
8813// region Logging
8826 '',
8827 'block',
8828 'protect',
8829 'rights',
8830 'delete',
8831 'upload',
8832 'move',
8833 'import',
8834 'patrol',
8835 'merge',
8836 'suppress',
8837 'tag',
8838 'managetags',
8839 'contentmodel',
8840];
8841
8850 'suppress' => 'suppressionlog'
8851];
8852
8873 'patrol' => true,
8874 'tag' => true,
8875 'newusers' => false,
8876];
8877
8888 '' => 'all-logs-page',
8889 'block' => 'blocklogpage',
8890 'protect' => 'protectlogpage',
8891 'rights' => 'rightslog',
8892 'delete' => 'dellogpage',
8893 'upload' => 'uploadlogpage',
8894 'move' => 'movelogpage',
8895 'import' => 'importlogpage',
8896 'patrol' => 'patrol-log-page',
8897 'merge' => 'mergelog',
8898 'suppress' => 'suppressionlog',
8899];
8900
8911 '' => 'alllogstext',
8912 'block' => 'blocklogtext',
8913 'delete' => 'dellogpagetext',
8914 'import' => 'importlogpagetext',
8915 'merge' => 'mergelogpagetext',
8916 'move' => 'movelogpagetext',
8917 'patrol' => 'patrol-log-header',
8918 'protect' => 'protectlogtext',
8919 'rights' => 'rightslogtext',
8920 'suppress' => 'suppressionlogtext',
8921 'upload' => 'uploadlogpagetext',
8922];
8923
8931
8939 'block/block' => BlockLogFormatter::class,
8940 'block/reblock' => BlockLogFormatter::class,
8941 'block/unblock' => BlockLogFormatter::class,
8942 'contentmodel/change' => ContentModelLogFormatter::class,
8943 'contentmodel/new' => ContentModelLogFormatter::class,
8944 'delete/delete' => DeleteLogFormatter::class,
8945 'delete/delete_redir' => DeleteLogFormatter::class,
8946 'delete/delete_redir2' => DeleteLogFormatter::class,
8947 'delete/event' => DeleteLogFormatter::class,
8948 'delete/restore' => DeleteLogFormatter::class,
8949 'delete/revision' => DeleteLogFormatter::class,
8950 'import/interwiki' => ImportLogFormatter::class,
8951 'import/upload' => ImportLogFormatter::class,
8952 'managetags/activate' => LogFormatter::class,
8953 'managetags/create' => LogFormatter::class,
8954 'managetags/deactivate' => LogFormatter::class,
8955 'managetags/delete' => LogFormatter::class,
8956 'merge/merge' => MergeLogFormatter::class,
8957 'move/move' => MoveLogFormatter::class,
8958 'move/move_redir' => MoveLogFormatter::class,
8959 'patrol/patrol' => PatrolLogFormatter::class,
8960 'patrol/autopatrol' => PatrolLogFormatter::class,
8961 'protect/modify' => ProtectLogFormatter::class,
8962 'protect/move_prot' => ProtectLogFormatter::class,
8963 'protect/protect' => ProtectLogFormatter::class,
8964 'protect/unprotect' => ProtectLogFormatter::class,
8965 'rights/autopromote' => RightsLogFormatter::class,
8966 'rights/rights' => RightsLogFormatter::class,
8967 'suppress/block' => BlockLogFormatter::class,
8968 'suppress/delete' => DeleteLogFormatter::class,
8969 'suppress/event' => DeleteLogFormatter::class,
8970 'suppress/reblock' => BlockLogFormatter::class,
8971 'suppress/revision' => DeleteLogFormatter::class,
8972 'tag/update' => TagLogFormatter::class,
8973 'upload/overwrite' => UploadLogFormatter::class,
8974 'upload/revert' => UploadLogFormatter::class,
8975 'upload/upload' => UploadLogFormatter::class,
8976];
8977
8987 'block' => [
8988 'block' => [ 'block' ],
8989 'reblock' => [ 'reblock' ],
8990 'unblock' => [ 'unblock' ],
8991 ],
8992 'contentmodel' => [
8993 'change' => [ 'change' ],
8994 'new' => [ 'new' ],
8995 ],
8996 'delete' => [
8997 'delete' => [ 'delete' ],
8998 'delete_redir' => [ 'delete_redir', 'delete_redir2' ],
8999 'restore' => [ 'restore' ],
9000 'event' => [ 'event' ],
9001 'revision' => [ 'revision' ],
9002 ],
9003 'import' => [
9004 'interwiki' => [ 'interwiki' ],
9005 'upload' => [ 'upload' ],
9006 ],
9007 'managetags' => [
9008 'create' => [ 'create' ],
9009 'delete' => [ 'delete' ],
9010 'activate' => [ 'activate' ],
9011 'deactivate' => [ 'deactivate' ],
9012 ],
9013 'move' => [
9014 'move' => [ 'move' ],
9015 'move_redir' => [ 'move_redir' ],
9016 ],
9017 'newusers' => [
9018 'create' => [ 'create', 'newusers' ],
9019 'create2' => [ 'create2' ],
9020 'autocreate' => [ 'autocreate' ],
9021 'byemail' => [ 'byemail' ],
9022 ],
9023 'protect' => [
9024 'protect' => [ 'protect' ],
9025 'modify' => [ 'modify' ],
9026 'unprotect' => [ 'unprotect' ],
9027 'move_prot' => [ 'move_prot' ],
9028 ],
9029 'rights' => [
9030 'rights' => [ 'rights' ],
9031 'autopromote' => [ 'autopromote' ],
9032 ],
9033 'suppress' => [
9034 'event' => [ 'event' ],
9035 'revision' => [ 'revision' ],
9036 'delete' => [ 'delete' ],
9037 'block' => [ 'block' ],
9038 'reblock' => [ 'reblock' ],
9039 ],
9040 'upload' => [
9041 'upload' => [ 'upload' ],
9042 'overwrite' => [ 'overwrite' ],
9043 'revert' => [ 'revert' ],
9044 ],
9045];
9046
9051
9057
9058// endregion -- end logging
9059
9060/***************************************************************************/
9061// region Special pages (general and miscellaneous)
9068
9075
9081
9087
9096 'IPv4' => 16,
9097 'IPv6' => 32,
9098];
9099
9100// endregion -- end special pages
9101
9102/***************************************************************************/
9103// region Actions
9112
9113// endregion -- end actions
9114
9115/***************************************************************************/
9116// region Robot (search engine crawler) policy
9118// See also $wgNoFollowLinks.
9119
9125$wgDefaultRobotPolicy = 'index,follow';
9126
9142
9170
9182
9183// endregion End robot policy
9184
9185/***************************************************************************/
9186// region AJAX, Action API and REST API
9208
9246
9255
9264
9273
9282
9288
9294
9300
9307
9313
9318
9324 'MIMEsearch', // aiprop=mime
9325 'LinkSearch', // list=exturlusage
9326];
9327
9334
9341
9346
9351
9373
9380
9385 /* simple headers (see spec) */
9386 'Accept',
9387 'Accept-Language',
9388 'Content-Language',
9389 'Content-Type',
9390 /* non-authorable headers in XHR, which are however requested by some UAs */
9391 'Accept-Encoding',
9392 'DNT',
9393 'Origin',
9394 /* MediaWiki whitelist */
9395 'User-Agent',
9396 'Api-User-Agent',
9397 /* Allowing caching preflight requests, see T269636 */
9398 'Access-Control-Max-Age',
9399];
9400
9407
9408// endregion -- End AJAX and API
9409
9410/***************************************************************************/
9411// region Shell and process control
9418
9424
9429
9435
9460
9464$wgPhpCli = '/usr/bin/php';
9465
9500$wgShellLocale = 'C.UTF-8';
9501
9517
9522
9536$wgShellboxUrls = [ 'default' => null ];
9537
9546
9547// endregion -- end Shell and process control
9548
9549/***************************************************************************/
9550// region HTTP client
9560
9570
9579
9588
9594
9599
9604
9619
9626
9627// endregion -- End HTTP client
9628
9629/***************************************************************************/
9630// region Job queue
9640
9649
9654
9659
9660// endregion -- End job queue
9661
9662/***************************************************************************/
9663// region Miscellaneous
9671
9710 'paths' => [],
9711 'modules' => [],
9712 'global' => [
9713 # Timeout in seconds
9714 'timeout' => 360,
9715 # 'domain' is set to $wgCanonicalServer in Setup.php
9716 'forwardCookies' => false,
9717 'HTTPProxy' => null
9718 ]
9719];
9720
9741 'default' => [
9742 'class' => EventRelayerNull::class,
9743 ]
9744];
9745
9764
9772
9782
9792
9802
9812
9822
9833
9834/*
9835 * This file uses VisualStudio style region/endregion fold markers which are
9836 * recognised by PHPStorm. If modelines are enabled, the following editor
9837 * configuration will also enable folding in vim, if it is in the last 5 lines
9838 * of the file. We also use "@name" which creates sections in Doxygen.
9839 *
9840 * vim: foldmarker=//\ region,//\ endregion foldmethod=marker
9841 */
9842// endregion
$wgGalleryOptions
Parameters for the "<gallery>" tag.
$wgObjectCaches
Advanced object cache configuration.
$wgMaxShellWallClockTime
Maximum wall clock time (i.e.
$wgJobTypeConf
Map of job types to configuration arrays.
$wgProhibitedFileExtensions
Files with these extensions will never be allowed as uploads.
$wgAntivirus
Internal name of virus scanner.
$wgRestrictionLevels
Rights which can be required for each protection level (via action=protect)
$wgDisableHardRedirects
Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected f...
$wgExemptFromUserRobotsControl
An array of namespace keys in which the INDEX/__NOINDEX__ magic words will not function,...
$wgCustomConvertCommand
Use another resizing converter, e.g.
$wgRightsIcon
Override for copyright metadata.
$wgCacheEpoch
Set this to current time to invalidate all prior cached pages.
$wgCdnMaxageLagged
Cache timeout for the CDN when DB replica DB lag is high.
$wgLegalTitleChars
Allowed title characters – regex character class Don't change this unless you know what you're doing.
$wgUploadThumbnailRenderHttpCustomHost
When using the "http" $wgUploadThumbnailRenderMethod, lets one specify a custom Host HTTP header.
string null $wgWatchlistExpiryMaxDuration
Relative maximum duration for watchlist expiries, as accepted by strtotime().
$wgOldRevisionParserCacheExpireTime
The expiry time for the parser cache for old revisions, in seconds.
string null $wgCookieSameSite
The SameSite cookie attribute used for login cookies.
$wgBreakFrames
Break out of framesets.
$wgXmlDumpSchemaVersion
The schema to use per default when generating XML dumps.
bool $wgPageLanguageUseDB
Enable page language feature Allows setting page language in database.
$wgCookieSetOnAutoblock
Whether to set a cookie when a user is autoblocked.
string $wgSharedUploadDirectory
Shortcut for the 'directory' setting of $wgForeignFileRepos.
bool $wgRestAllowCrossOriginCookieAuth
Allows authenticated cross-origin requests to the REST API with session cookies.
$wgMaxInterlacingAreas
Array of max pixel areas for interlacing per MIME type.
int $wgReportToExpiry
Expiry of the endpoint definition for the Reporting API.
$wgAdvancedSearchHighlighting
Set to true to have nicer highlighted text in search results, by default off due to execution overhea...
bool $wgMainPageIsDomainRoot
Option to whether serve the main page as the domain root.
$wgUsePathInfo
Whether to support URLs like index.php/Page_title These often break when PHP is set up in CGI mode.
$wgUseSiteCss
Use the site's Cascading Style Sheets (CSS)?
$wgInterwikiExpiry
Expiry time for cache of interwiki table.
$wgAPIUselessQueryPages
The ApiQueryQueryPages module should skip pages that are redundant to true API queries.
$wgGitRepositoryViewers
Map GIT repository URLs to viewer URLs to provide links in Special:Version.
bool $wgEnotifRevealEditorAddress
Allow sending of e-mail notifications with the editor's address in "Reply-To".
$wgFileBackends
File backend structure configuration.
string $wgCentralIdLookupProvider
Central ID lookup provider to use by default.
$wgUseTinyRGBForJPGThumbnails
When this variable is true and JPGs use the sRGB ICC profile, swaps it for the more lightweight (and ...
$wgExtensionEntryPointListFiles
Array of files with list(s) of extension entry points to be used in maintenance/mergeMessageFileList....
$wgSemiprotectedRestrictionLevels
Restriction levels that should be considered "semiprotected".
$wgLanguageCode
Site language code.
$wgFileExtensions
This is the list of preferred extensions for uploading files.
$wgMaximumMovedPages
Maximum number of pages to move at once when moving subpages with a page.
$wgConfigRegistry
Registry of factory functions to create config objects: The 'main' key must be set,...
$wgParserCacheType
The cache type for storing article HTML.
string null $wgChronologyProtectorStash
The object store type for the ChronologyProtector store.
$wgRateLimitsExcludedIPs
Array of IPs / CIDR ranges which should be excluded from rate limits.
$wgUseCdn
Enable/disable CDN.
$wgMemoryLimit
The minimum amount of memory that MediaWiki "needs"; MediaWiki will try to raise PHP's memory limit i...
$wgMaxTemplateDepth
Maximum recursion depth for templates within templates.
$wgAPIMetaModules
API Query meta module extensions.
array $wgFeaturePolicyReportOnly
List of Feature Policy Reporting types to enable.
$wgGroupsRemoveFromSelf
$wgEmergencyContact
Site admin email address.
$wgRCShowWatchingUsers
Show watching users in recent changes, watchlist and page history views.
$wgDBprefix
Current wiki database table name prefix.
$wgAPIMaxResultSize
The maximum size (in bytes) of an API result.
$wgNewPasswordExpiry
The time, in seconds, when an emailed temporary password expires.
$wgMaxPPNodeCount
A complexity limit on template expansion: the maximum number of nodes visited by PPFrame::expand()
$wgPreviewOnOpenNamespaces
Which namespaces have special treatment where they should be preview-on-open Internally only Category...
$wgAllowUserJs
Allow user Javascript page? This enables a lot of neat customizations, but may increase security risk...
$wgEnotifWatchlist
Allow users to enable email notification ("enotif") on watchlist changes.
$wgCdnReboundPurgeDelay
If set, any SquidPurge call on a URL or URLs will send a second purge no less than this many seconds ...
$wgArticleRobotPolicies
Robot policies per article.
$wgApplyIpBlocksToXff
Whether to look at the X-Forwarded-For header's list of (potentially spoofed) IPs and apply IP blocks...
$wgLegacySchemaConversion
If set to true, the MediaWiki 1.4 to 1.5 schema conversion will create stub reference rows in the tex...
bool array $wgCSPReportOnlyHeader
Controls Content-Security-Policy-Report-Only header.
$wgDBuser
Database username.
$wgCdnMaxageStale
Cache timeout when delivering a stale ParserCache response due to PoolCounter contention.
$wgCategoryPagingLimit
Paging limit for categories.
int bool $wgSuspiciousIpExpiry
Time in seconds to remember IPs for, for the purposes of logging IP changes within the same session.
$wgFeedCacheTimeout
Minimum timeout for cached Recentchanges feed, in seconds.
$wgUserEmailConfirmationTokenExpiry
The time, in seconds, when an email confirmation email expires.
$wgRemoveGroups
bool $wgEnotifFromEditor
Allow sending of e-mail notifications with the editor's address as sender.
$wgSessionProviders
MediaWiki\Session\SessionProvider configuration.
$wgUpdateCompatibleMetadata
Shortcut for the 'updateCompatibleMetadata' setting of $wgLocalFileRepo.
$wgUploadMaintenance
To disable file delete/restore temporarily.
$wgUniversalEditButton
Enable the UniversalEditButton for browsers that support it (currently only Firefox with an extension...
$wgMaxArticleSize
Maximum article size in kibibytes.
string $wgPHPSessionHandling
Whether to use PHP session handling ($_SESSION and session_*() functions)
$wgDeleteRevisionsBatchSize
Page deletions with > this number of revisions will use the job queue.
$wgCrossSiteAJAXdomainExceptions
Domains that should not be allowed to make AJAX requests, even if they match one of the domains allow...
$wgEnableParserLimitReporting
Whether to include the NewPP limit report as a HTML comment.
$wgDisableCookieCheck
By default, MediaWiki checks if the client supports cookies during the login process,...
$wgEnotifMaxRecips
Maximum number of users to mail at once when using impersonal mail.
$wgEnotifUserTalk
Allow users to enable email notification ("enotif") when someone edits their user talk page.
$wgUploadStashMaxAge
The maximum age of temporary (incomplete) uploaded files.
$wgLearnerMemberSince
Number of days the user must exist before becoming a learner.
$wgExportFromNamespaces
Whether to allow the "export all pages in namespace" option.
$wgDefaultRobotPolicy
Default robot policy.
bool $wgCacheSharedUploads
Shortcut for the ForeignDBRepo 'hasSharedCache' setting in $wgForeignFileRepos.
$wgCascadingRestrictionLevels
Restriction levels that can be used with cascading protection.
$wgExtraSignatureNamespaces
Array of namespaces, in addition to the talk namespaces, where signatures (~~~~) are likely to be use...
float $wgWatchlistPurgeRate
Chance of expired watchlist items being purged on any page edit.
$wgStatsdMetricPrefix
Prefix for metric names sent to $wgStatsdServer.
$wgAutoblockExpiry
Number of seconds before autoblock entries expire.
int $wgMultiContentRevisionSchemaMigrationStage
RevisionStore table schema migration stage (content, slots, content_models & slot_roles tables).
$wgSignatureValidation
Behavior of signature validation.
$wgDefaultLanguageVariant
Default variant code, if false, the default will be the language code.
$wgMessagesDirs
Extension messages directories.
bool string $wgSharedUploadDBname
Shortcut for the ForeignDBRepo 'dbName' setting in $wgForeignFileRepos.
bool $wgWatchlistExpiry
Whether to enable the watchlist expiry feature.
$wgDisableQueryPageUpdate
Set this to an array of special page names to prevent maintenance/updateSpecialPages....
$wgParserTestFiles
Parser test suite files to be run by parserTests.php when no specific filename is passed to it.
$wgProxyList
Big list of banned IP addresses.
$wgScript
The URL path to index.php.
$wgLegacyEncoding
Set this to eg 'ISO-8859-1' to perform character set conversion when loading old revisions not marked...
$wgUseInstantCommons
Use Wikimedia Commons as a foreign file repository.
$wgImgAuthPath
The base path for img_auth.php.
$wgSQLiteDataDir
To override default SQLite data directory ($docroot/../data)
$wgResourceLoaderEnableJSProfiler
When enabled, execution of JavaScript modules is profiled client-side.
bool $wgPriorityHints
Enable client-side Priority Hints.
$wgEnableUserEmailMuteList
Set to true to enable user-to-user e-mail mutelist.
$wgThumbUpright
Adjust width of upright images when parameter 'upright' is used This allows a nicer look for upright ...
$wgEnableImageWhitelist
If $wgAllowExternalImages is false, you can allow an on-wiki allow list of regular expression fragmen...
$wgPasswordExpireGrace
If a user's password is expired, the number of seconds when they can still login, and cancel their pa...
$wgFeedLimit
Set maximum number of results to return in syndication feeds (RSS, Atom) for eg Recentchanges,...
$wgActiveUserDays
How many days user must be idle before he is considered inactive.
$wgLockManagers
Array of configuration arrays for each lock manager.
$wgNamespacesWithSubpages
Which namespaces should support subpages? See Language.php for a list of namespaces.
$wgSiteTypes
Register handlers for specific types of sites.
$wgEditSubmitButtonLabelPublish
Whether to label the store-to-database-and-show-to-others button in the editor as "Save page"/"Save c...
$wgRawHtml
Allow raw, unchecked HTML in "<html>...</html>" sections.
$wgHiddenPrefs
An array of preferences to not show for the user.
$wgMaxRedirectLinksRetrieved
Maximum number of links to a redirect page listed on Special:Whatlinkshere/RedirectDestination.
$wgForeignUploadTargets
Array of foreign file repo names (set in $wgForeignFileRepos above) that are allowable upload targets...
$wgImagePreconnect
On pages containing images, tell the user agent to pre-connect to hosts from $wgForeignFileRepos.
$wgCheckFileExtensions
This is a flag to determine whether or not to check file extensions on upload.
$wgUserrightsInterwikiDelimiter
Character used as a delimiter when testing for interwiki userrights (In Special:UserRights,...
$wgAllowRequiringEmailForResets
Temporary feature flag that controls whether users will see a checkbox allowing them to require provi...
$wgUseCopyrightUpload
Set this to true if you want detailed copyright information forms on Upload.
$wgRCFeeds
Configuration for feeds to which notifications about recent changes will be sent.
$wgNoFollowNsExceptions
Namespaces in which $wgNoFollowLinks doesn't apply.
$wgEnableOpenSearchSuggest
This was previously a used to force empty responses from ApiOpenSearch with the 'suggest' parameter s...
$wgCleanSignatures
If true, removes (by substituting) templates in signatures.
$wgDBadminuser
Separate username for maintenance tasks.
bool $wgHashedSharedUploadDirectory
Shortcut for the 'hashLevels' setting of $wgForeignFileRepos.
$wgUseLocalMessageCache
Set this to true to maintain a copy of the message cache on the local server.
$wgCountCategorizedImagesAsUsed
On Special:Unusedimages, consider images "used", if they are put into a category.
$wgInternalServer
Internal server name as known to CDN, if different.
$wgHTCPRouting
Routing configuration for HTCP multicast purging.
$wgCacheDirectory
Directory for caching data in the local filesystem.
$wgAutoloadAttemptLowercase
Switch controlling legacy case-insensitive classloading.
$wgServerName
Server name.
$wgPageInfoTransclusionLimit
InfoAction retrieves a list of transclusion links (both to and from).
bool $wgEnableBotPasswords
Whether to enable bot passwords.
$wgAmericanDates
Enable dates like 'May 12' instead of '12 May', if the default date format is 'dmy or mdy'.
$wgRightsUrl
Set this to specify an external URL containing details about the content license used on your wiki.
$wgRenderHashAppend
Append a configured value to the parser cache and the sitenotice key so that they can be kept separat...
$wgSharedTables
$wgSend404Code
Some web hosts attempt to rewrite all responses with a 404 (not found) status code,...
$wgMaxShellMemory
Maximum amount of virtual memory available to shell processes under linux, in KiB.
$wgThumbLimits
Adjust thumbnails on image pages according to a user setting.
$wgSessionName
Override to customise the session name.
$wgHideIdentifiableRedirects
Should MediaWiki attempt to protect user's privacy when doing redirects? Keep this true if access cou...
$wgUseAjax
Enable AJAX framework.
$wgDefaultUserOptions
Settings added to this array will override the default globals for the user preferences used by anony...
$wgUploadStashScalerBaseUrl
To enable remote on-demand scaling, set this to the thumbnail base URL.
$wgBlockCIDRLimit
Limits on the possible sizes of range blocks.
$wgLogActions
Lists the message key string for formatting individual events of each type and action when listed in ...
$wgAdaptiveMessageCache
Instead of caching everything, only cache those messages which have been customised in the site conte...
$wgUseTagFilter
Allow filtering by change tag in recentchanges, history, etc Has no effect if no tags are defined.
$wgTrackingCategories
Array holding default tracking category names.
$wgMainCacheType
Main cache type.
$wgUseImageResize
Whether to enable server-side image thumbnailing.
$wgSkinMetaTags
An array of open graph tags which should be added by all skins.
$wgJpegQuality
When scaling a JPEG thumbnail, this is the quality we request from the backend.
$wgDisableSearchUpdate
If you've disabled search semi-permanently, this also disables updates to the table.
$wgRedirectSources
If local interwikis are set up which allow redirects, set this regexp to restrict URLs which will be ...
$wgExtraInterlanguageLinkPrefixes
List of additional interwiki prefixes that should be treated as interlanguage links (i....
int $wgResourceLoaderMaxQueryLength
ResourceLoader will not generate URLs whose query string is more than this many characters long,...
$wgDisableOutputCompression
Disable output compression (enabled by default if zlib is available)
$wgTrxProfilerLimits
Performance expectations for DB usage.
$wgDebugLogPrefix
Prefix for debug log lines.
$wgActionPaths
To set 'pretty' URL paths for actions other than plain page views, add to this array.
$wgSitemapNamespaces
Array of namespaces to generate a Google sitemap for when the maintenance/generateSitemap....
$wgLoginLanguageSelector
Show a bar of language selection links in the user login and user registration forms; edit the "login...
$wgDisableAnonTalk
Disable links to talk pages of anonymous users (IPs) in listings on special pages like page history,...
$wgAdvertisedFeedTypes
Which feed types should we provide by default? This can include 'rss', 'atom', neither,...
$wgAuthManagerConfig
Configure AuthManager.
$wgPhpCli
Executable path of the PHP cli binary.
$wgAutopromoteOnceLogInRC
Put user rights log entries for autopromotion in recent changes?
$wgSecretKey
This should always be customised in LocalSettings.php.
$wgIgnoreImageErrors
If set, inline scaled images will still produce "<img>" tags ready for output instead of showing an e...
$wgMimeType
The default Content-Type header.
$wgIncludejQueryMigrate
Whether to load the jquery.migrate library.
$wgEnableAutoRotation
If set to true, images that contain certain the exif orientation tag will be rotated accordingly.
$wgExtraGenderNamespaces
Same as above, but for namespaces with gender distinction.
$wgEnableUserEmail
Set to true to enable user-to-user e-mail.
$wgCookieExpiration
Default cookie lifetime, in seconds.
$wgPagePropLinkInvalidations
Page property link table invalidation lists.
$wgPasswordPolicy
Password policy for the wiki.
$wgAllowUserCss
Allow user Cascading Style Sheets (CSS)? This enables a lot of neat customizations,...
$wgAutopromote
Array containing the conditions of automatic promotion of a user to specific groups.
$wgStructuredChangeFiltersLiveUpdatePollingRate
Polling rate, in seconds, used by the 'live update' and 'view newest' features of the RCFilters app o...
$wgSVGConverter
Pick a converter defined in $wgSVGConverters.
$wgOverrideHostname
Override server hostname detection with a hardcoded value.
$wgSummarySpamRegex
Same as the above except for edit summaries.
$wgFallbackSkin
Fallback skin used when the skin defined by $wgDefaultSkin can't be found.
$wgQueryPageDefaultLimit
Integer defining default number of entries to show on special pages which are query-pages such as Spe...
$wgTranslateNumerals
For Hindi and Arabic use local numerals instead of Western style (0-9) numerals in interface.
$wgMediaInTargetLanguage
Whether thumbnails should be generated in target language (usually, same as page language),...
$wgForcedRawSMaxage
Default maximum age for raw CSS/JS accesses.
$wgDjvuRenderer
Path of the ddjvu DJVU renderer Enable this and $wgDjvuDump to enable djvu rendering example: $wgDjvu...
bool $wgReadOnlyWatchedItemStore
Set this to true to put the wiki watchlists into read-only mode.
$wgImageMagickTempDir
Temporary directory used for ImageMagick.
$wgAllowDisplayTitle
Allow DISPLAYTITLE to change title display.
$wgSitemapNamespacesPriorities
Custom namespace priorities for sitemaps.
$wgLogNames
Lists the message key string for each log type.
int $wgRevisionCacheExpiry
Revision text may be cached in the main WAN cache to reduce load on external storage servers and obje...
$wgCapitalLinks
Set this to false to avoid forcing the first letter of links to capitals.
$wgCdnMaxageSubstitute
Cache timeout for the CDN when a response is known to be wrong or incomplete (due to load)
$wgExperiencedUserMemberSince
Number of days the user must exist before becoming "experienced".
$wgResourceLoaderSources
Extensions should register foreign module sources here.
array $wgRangeContributionsCIDRLimit
Shortest CIDR limits that can be checked in any individual range check at Special:Contributions.
$wgLogExceptionBacktrace
If true, send the exception backtrace to the error log.
$wgSQLMode
SQL Mode - default is turning off all modes, including strict, if set.
$wgEnableJavaScriptTest
Allow running of javascript test suites via [[Special:JavaScriptTest]] (such as QUnit).
array $wgOverrideUcfirstCharacters
List of Unicode characters for which capitalization is overridden in Language::ucfirst.
$wgPutIPinRC
Log IP addresses in the recentchanges table; can be accessed only by extensions (e....
$wgInvalidateCacheOnLocalSettingsChange
Invalidate various caches when LocalSettings.php changes.
$wgLocalStylePath
The URL path of the skins directory.
$wgAPIMaxLagThreshold
Maximum amount of DB lag on a majority of DB replica DBs to tolerate before forcing bots to retry any...
$wgDBservers
Database load balancer This is a two-dimensional array, an array of server info structures Fields are...
$wgMaxPPExpandDepth
$wgThumbnailScriptPath
Give a path here to use thumb.php for thumbnail generation on client request, instead of generating t...
$wgNonincludableNamespaces
Pages in namespaces in this array can not be used as templates.
$wgExportPagelistLimit
Maximum number of pages returned by the GetPagesFromCategory and GetPagesFromNamespace functions.
array $wgDefaultExternalStore
The place to put new revisions, false to put them in the local text table.
$wgAllowedCorsHeaders
List of allowed headers for cross-origin API requests.
$wgPasswordResetRoutes
Whether to allow password resets ("enter some identifying data, and we'll send an email with a tempor...
$wgHKDFSecret
Secret for hmac-based key derivation function (fast, cryptographically secure random numbers).
$wgRegisterInternalExternals
By default MediaWiki does not register links pointing to same server in externallinks dataset,...
$wgNoFollowLinks
If true, external URL links in wiki text will be given the rel="nofollow" attribute as a hint to sear...
bool $wgElementTiming
Enable Element Timing.
$wgDisableLangConversion
Whether to enable language variant conversion.
$wgRestrictDisplayTitle
For consistency, restrict DISPLAYTITLE to text that normalizes to the same canonical DB key.
$wgMaxRedirects
Max number of redirects to follow when resolving redirects.
$wgFileCacheDepth
Depth of the subdirectory hierarchy to be created under $wgFileCacheDirectory.
$wgReadOnly
Set this to a string to put the wiki into read-only mode.
$wgResourceLoaderDebug
The default debug mode (on/off) for of ResourceLoader requests.
$wgAntivirusRequired
Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected.
$wgUseFilePatrol
Use file patrolling to check new files on Special:Newfiles.
$wgMediaHandlers
Plugins for media file type handling.
$wgImageLimits
Limit images on image description pages to a user-selectable limit.
$wgShowHostnames
Expose backend server host names through the API and various HTML comments.
$wgJobRunRate
Number of jobs to perform per request.
$wgAllowSpecialInclusion
Allow special page inclusions such as {{Special:Allpages}}.
$wgJobQueueIncludeInMaxLagFactor
Whether to include the number of jobs that are queued for the API's maxlag parameter.
$wgUseAutomaticEditSummaries
If user doesn't specify any edit summary when making a an edit, MediaWiki will try to automatically c...
$wgAllowUserCssPrefs
Allow style-related user-preferences?
$wgCentralIdLookupProviders
Central ID lookup providers Key is the provider ID, value is a specification for ObjectFactory.
$wgUploadSizeWarning
Warn if uploaded files are larger than this (in bytes), or false to disable.
$wgAPIMaxUncachedDiffs
The maximum number of uncached diffs that can be retrieved in one API request.
array $wgVirtualRestConfig
Global configuration variable for Virtual REST Services.
$wgGrammarForms
Some languages need different word forms, usually for different cases.
$wgHTTPProxy
Proxy to use for CURL requests.
string null $wgAuthenticationTokenVersion
Versioning for authentication tokens.
$wgInterwikiPrefixDisplayTypes
Mapping of interwiki index prefixes to descriptors that can be used to change the display of interwik...
$wgExportAllowListContributors
Return distinct author list (when not returning full history)
$wgPasswordAttemptThrottle
Limit password attempts to X attempts per Y seconds per IP per account.
$wgContentNamespaces
Array of namespaces which can be deemed to contain valid "content", as far as the site statistics are...
string[] $wgSoftBlockRanges
IP ranges that should be considered soft-blocked (anon-only, account creation allowed).
$wgExtraNamespaces
Additional namespaces.
$wgSVGMaxSize
Don't scale a SVG larger than this.
$wgMaxShellFileSize
Maximum file size created by shell processes under linux, in KiB ImageMagick convert for example can ...
$wgThumbnailBuckets
When defined, is an array of image widths used as buckets for thumbnail generation.
$wgCanonicalNamespaceNames
Canonical namespace names.
$wgDisableUploadScriptChecks
Setting this to true will disable the upload system's checks for HTML/JavaScript.
array $wgSoftwareTags
List of core tags to enable.
$wgDBDefaultGroup
Default group to use when getting database connections.
$wgDisabledVariants
Disabled variants array of language variant conversion.
$wgTmpDirectory
The local filesystem path to a temporary directory.
bool $wgGenerateThumbnailOnParse
Render thumbnails while parsing wikitext.
$wgStyleDirectory
Filesystem stylesheets directory.
bool $wgUseSharedUploads
Shortcut for adding an entry to $wgForeignFileRepos.
string $wgSharedUploadDBprefix
Shortcut for the ForeignDBRepo 'tablePrefix' setting in $wgForeignFileRepos.
$wgAutoloadClasses
Array mapping class names to filenames, for autoloading.
$wgShellCgroup
Under Linux: a cgroup directory used to constrain memory usage of shell commands.
$wgDBtype
Database type.
$wgTransactionalTimeLimit
The request time limit for "slow" write requests that should not be interrupted due to the risk of da...
$wgDBmwschema
Current wiki database schema name.
$wgMinUploadChunkSize
Minimum upload chunk size, in bytes.
$wgProxyWhitelist
Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other methods mi...
$wgNoReplyAddress
Reply-To address for e-mail notifications.
$wgShowRollbackEditCount
The $wgShowRollbackEditCount variable is used to show how many edits can be rolled back.
$wgUpgradeKey
When you run the web-based upgrade utility, it will tell you what to set this to in order to authoriz...
$wgDBname
Current wiki database name.
$wgUseDatabaseMessages
Translation using MediaWiki: namespace.
$wgMaxExecutionTimeForExpensiveQueries
Max execution time for queries of several expensive special pages such as RecentChanges in millisecon...
$wgSiteNotice
Site notice shown at the top of each page.
$wgXMLMimeTypes
Additional XML types we can allow via MIME-detection.
$wgJobTypesExcludedFromDefaultQueue
Jobs that must be explicitly requested, i.e.
$wgImgAuthDetails
Set this to true if you use img_auth and want the user to see details on why access failed.
$wgValidSkinNames
List of valid skin names.
$wgMaxMsgCacheEntrySize
Maximum entry size in the message cache, in bytes.
$wgUseGzip
When using the file cache, we can store the cached HTML gzipped to save disk space.
$wgCachePages
Allow client-side caching of pages.
$wgDBerrorLogTZ
Timezone to use in the error log.
$wgResourceModules
Define extra client-side modules to be registered with ResourceLoader.
$wgResourceLoaderStorageEnabled
Whether ResourceLoader should attempt to persist modules in localStorage on browsers that support the...
$wgEnableSearchContributorsByIP
If true, searches for IP addresses will be redirected to that IP's contributions page.
$wgAutoConfirmCount
Number of edits an account requires before it is autoconfirmed.
$wgUploadDirectory
The filesystem path of the images directory.
float int $wgHTTPTimeout
Timeout for HTTP requests done internally, in seconds.
bool $wgUseSameSiteLegacyCookies
If true, when a cross-site cookie with SameSite=None is sent, a legacy cookie with an "ss0" prefix wi...
$wgCookieHttpOnly
Set authentication cookies to HttpOnly to prevent access by JavaScript, in browsers that support this...
$wgMangleFlashPolicy
When OutputHandler is used, mangle any output that contains <cross-domain-policy>.
$wgRestAPIAdditionalRouteFiles
Additional REST API Route files.
$wgLogTypes
The logging system has two levels: an event type, which describes the general category and can be vie...
$wgCapitalLinkOverrides
$wgAPIPropModules
API Query prop module extensions.
$wgMaximalPasswordLength
Specifies the maximal length of a user password (T64685).
$wgSitename
Name of the site.
$wgUseCombinedLoginLink
Login / create account link behavior when it's possible for anonymous users to create an account.
$wgGroupsAddToSelf
A map of group names that the user is in, to group names that those users are allowed to add or revok...
$wgExternalServers
An array of external MySQL servers.
$wgAPIListModules
API Query list module extensions.
$wgThumbnailMinimumBucketDistance
When using thumbnail buckets as defined above, this sets the minimum distance to the bucket above the...
$wgShortPagesNamespaceExclusions
Optional array of namespaces which should be excluded from Special:ShortPages.
$wgHKDFAlgorithm
Algorithm for hmac-based key derivation function (fast, cryptographically secure random numbers).
$wgLocalVirtualHosts
Local virtual hosts.
$wgAdditionalMailParams
Additional email parameters, will be passed as the last argument to mail() call.
int bool $wgMaxJobDBWriteDuration
Max time (in seconds) a job-generated transaction can spend in writes.
$wgHideInterlanguageLinks
Hide interlanguage links from the sidebar.
$wgAvailableRights
A list of available rights, in addition to the ones defined by the core.
$wgDBadminpassword
Separate password for maintenance tasks.
$wgCompressRevisions
We can also compress text stored in the 'text' table.
$wgLoggedOutMaxAge
Cache TTL for the user agent sent as max-age, for logged out users.
$wgShowCreditsIfMax
If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
$wgDBerrorLog
File to log database errors to.
$wgReadOnlyFile
If this lock file exists (size > 0), the wiki will be forced into read-only mode.
$wgImportSources
List of interwiki prefixes for wikis we'll accept as sources for Special:Import and API action=import...
$wgInvalidRedirectTargets
Array of invalid page redirect targets.
$wgCachePrefix
Overwrite the caching key prefix with custom value.
$wgLogRestrictions
This restricts log access to those who have a certain right Users without this will not see it in the...
$wgParserOutputHooks
Parser output hooks.
int bool $wgCopyUploadTimeout
Different timeout for upload by url This could be useful since when fetching large files,...
$wgFileCacheDirectory
Directory where the cached page will be saved.
$wgRightsText
If either $wgRightsUrl or $wgRightsPage is specified then this variable gives the text for the link.
$wgProfiler
Profiler configuration.
$wgGitInfoCacheDirectory
Directory where GitInfo will look for pre-computed cache files.
$wgParserCacheExpireTime
The expiry time for the parser cache, in seconds.
$wgInterwikiFallbackSite
Fallback site, if unable to resolve from cache.
$wgUploadMissingFileUrl
Point the upload link for missing files to an external URL, as with $wgUploadNavigationUrl.
int bool $wgExtensionInfoMTime
When loading extensions through the extension registration system, this can be used to invalidate the...
string $wgBrowserFormatDetection
Override ability of certains browsers to attempt to autodetect dataformats in pages.
$wgPageCreationLog
Maintain a log of page creations at Special:Log/create?
$wgUnwatchedPageThreshold
If set to an integer, pages that are watched by this many users or more will not require the unwatche...
$wgExportAllowAll
Whether to allow exporting the entire wiki into a single file.
$wgIllegalFileChars
Additional characters that are not allowed in filenames.
$wgVerifyMimeType
Determines if the MIME type of uploaded files should be checked.
$wgShowUpdatedMarker
Show "Updated (since my last visit)" marker in RC view, watchlist and history view for watched pages ...
$wgExtensionMessagesFiles
Extension messages files.
$wgAntivirusSetup
Configuration for different virus scanners.
$wgDatabaseReplicaLagCritical
$wgUseRCPatrol
Use RC Patrolling to check for vandalism (from recent changes and watchlists) New pages and new files...
$wgLearnerEdits
The following variables define 3 user experience levels:
$wgCategoryCollation
Specify how category names should be sorted, when listed on a category page.
$wgResourceBasePath
The default 'remoteBasePath' value for instances of ResourceLoaderFileModule.
$wgNamespaceProtection
Set the minimum permissions required to edit pages in each namespace.
$wgSidebarCacheExpiry
Expiry time for the sidebar cache, in seconds.
$wgSignatureAllowedLintErrors
List of lint error codes which don't cause signature validation to fail.
$wgCommandLineDarkBg
For colorized maintenance script output, is your terminal background dark ?
$wgDjvuOutputExtension
File extension for the DJVU post processor output.
$wgNamespaceRobotPolicies
Robot policies per namespaces.
$wgAppleTouchIcon
The URL path of the icon for iPhone and iPod Touch web app bookmarks.
$wgOpenSearchTemplate
Template for OpenSearch suggestions, defaults to API action=opensearch.
$wgExportMaxHistory
If set nonzero, Special:Export requests for history of pages with more revisions than this will be re...
$wgFooterIcons
Abstract list of footer icons for skins in place of old copyrightico and poweredbyico code You can ad...
$wgRestrictionTypes
Set of available actions that can be restricted via action=protect You probably shouldn't change this...
$wgDirectoryMode
Default value for chmoding of new directories.
$wgUseNPPatrol
Use new page patrolling to check new pages on Special:Newpages.
$wgFixDoubleRedirects
Fix double redirects after a page move.
$wgDisableTextSearch
Set this to true to disable the full text search feature.
float int $wgHTTPMaxTimeout
The maximum HTTP request timeout in seconds.
array false $wgLogoHD
Array with URL paths to HD versions of the wiki logo.
$wgImgAuthUrlPathMap
Map of relative URL directories to match to internal mwstore:// base storage paths.
$wgRCChangedSizeThreshold
If the difference between the character counts of the text before and after the edit is below that va...
$wgObjectCacheSessionExpiry
The expiry time to use for session storage, in seconds.
$wgAjaxUploadDestCheck
Enable AJAX check for file overwrite, pre-upload.
$wgWhitelistRead
Pages anonymous user may see, set as an array of pages titles.
$wgInvalidUsernameCharacters
Characters to prevent during new account creations.
$wgAllowExternalImagesFrom
If the above is false, you can specify an exception here.
bool $wgEnableWANCacheReaper
Verify and enforce WAN cache purges using reliable DB sources as streams.
$wgUploadNavigationUrl
Point the upload navigation link to an external URL Useful if you want to use a shared repository by ...
$wgArticlePath
The URL path for primary article page views.
$wgVerifyMimeTypeIE
Determines whether extra checks for IE type detection should be applied.
$wgDeprecationReleaseLimit
Release limitation to wfDeprecated warnings, if set to a release number development warnings will not...
$wgSharpenReductionThreshold
Reduction in linear dimensions below which sharpening will be enabled.
$wgEnableSidebarCache
If on, the sidebar navigation links are cached for users with the current language set.
$wgVueDevelopmentMode
Whether to use the development version of Vue.js.
$wgUploadPath
The URL path for the images directory.
$wgHooks
Global list of hooks.
$wgDBport
Database port number (for PostgreSQL and Microsoft SQL Server).
$wgMemCachedTimeout
Read/write timeout for MemCached server communication, in microseconds.
$wgCategoryMagicGallery
On category pages, show thumbnail gallery for images belonging to that category instead of listing th...
$wgExtendedLoginCookieExpiration
Default login cookie lifetime, in seconds.
$wgEnableEmail
Set to true to enable the e-mail basic features: Password reminders, etc.
int $wgRevertedTagMaxDepth
Maximum depth (revision count) of reverts that will have their reverted edits marked with the mw-reve...
$wgMaxNameChars
Maximum number of bytes in username.
$wgExtensionFunctions
A list of callback functions which are called once MediaWiki is fully initialised.
$wgServiceWiringFiles
List of service wiring files to be loaded by the default instance of MediaWikiServices.
$wgEnotifImpersonal
Send a generic mail instead of a personalised mail for each user.
$wgCopyUploadsDomains
A list of domains copy uploads can come from.
$wgSearchForwardUrl
Set this to a URL to forward search requests to some external location.
$wgUpdateRowsPerJob
Number of rows to update per job.
$wgMessageCacheType
The cache type for storing the contents of the MediaWiki namespace.
$wgInterwikiMagic
Treat language links as magic connectors, not inline links.
$wgAllowSiteCSSOnRestrictedPages
Whether to allow site-wide CSS (MediaWiki:Common.css and friends) on restricted pages like Special:Us...
$wgDisableInternalSearch
Disable the internal MySQL-based search, to allow it to be implemented by an extension instead.
$wgCrossSiteAJAXdomains
Settings for incoming cross-site AJAX requests: Newer browsers support cross-site AJAX when the targe...
$wgNoFollowDomainExceptions
If this is set to an array of domains, external links to these domain names (or any subdomains) will ...
$wgShellLocale
Locale for LC_ALL, to provide a known environment for locale-sensitive operations.
$wgDiff3
Path to the GNU diff3 utility.
$wgAjaxLicensePreview
Enable previewing licences via AJAX.
$wgAllUnicodeFixes
Set this to always convert certain Unicode sequences to modern ones regardless of the content languag...
$wgCookiePath
Set this variable if you want to restrict cookies to a certain path within the domain specified by $w...
$wgSecureLogin
This is to let user authenticate using https when they come from http.
$wgInterwikiScopes
Specify number of domains to check for messages.
$wgUsePigLatinVariant
Whether to enable the pig Latin variant of English (en-x-piglatin), used to ease variant development ...
$wgUsersNotifiedOnAllChanges
Array of usernames who will be sent a notification email for every change which occurs on a wiki.
$wgEnableSpecialMute
Set to true to enable the Special Mute page.
$wgCookieDomain
Set to set an explicit domain on the login cookies eg, "justthis.domain.org" or "....
$wgRCMaxAge
Recentchanges items are periodically purged; entries older than this many seconds will go.
$wgImplicitGroups
Implicit groups, aren't shown on Special:Listusers or somewhere else.
$wgFeedDiffCutoff
When generating Recentchanges RSS/Atom feed, diffs will not be generated for pages larger than this s...
bool array $wgCSPHeader
Controls Content-Security-Policy header [Experimental].
$wgWhitelistReadRegexp
Pages anonymous user may see, set as an array of regular expressions.
$wgAddGroups
$wgAddGroups and $wgRemoveGroups can be used to give finer control over who can assign which groups a...
$wgActions
Array of allowed values for the "title=foo&action=<action>" parameter.
$wgDebugComments
Send debug data to an HTML comment in the output.
bool $wgHashedUploadDirectory
Shortcut for setting hashLevels=2 in $wgLocalFileRepo.
$wgLocaltimezone
Fake out the timezone that the server thinks it's in.
$wgSkipSkins
Specify the names of skins that should not be presented in the list of available skins in user prefer...
$wgActionFilteredLogs
List of log types that can be filtered by action types.
$wgRedirectOnLogin
Allow redirection to another page when a user logs in.
$wgAuthManagerAutoConfig
$wgUserEmailUseReplyTo
If true put the sending user's email in a Reply-To header instead of From (false).
$wgUploadBaseUrl
If set, this URL is added to the start of $wgUploadPath to form a complete upload URL.
$wgUrlProtocols
URL schemes that should be recognized as valid by wfParseUrl().
$wgEnableAsyncUploads
Enable deferred upload tasks that use the job queue.
$wgIncludeLegacyJavaScript
Whether to ensure the mediawiki.legacy library is loaded before other modules.
$wgJpegPixelFormat
At default setting of 'yuv420', JPEG thumbnails will use 4:2:0 chroma subsampling to reduce file size...
$wgDeleteRevisionsLimit
Optional to restrict deletion of pages with higher revision counts to users with the 'bigdelete' perm...
string null $wgShellboxSecretKey
The secret key for HMAC verification of Shellbox requests.
bool $wgFetchCommonsDescriptions
Shortcut for the 'fetchDescription' setting of $wgForeignFileRepos.
bool $wgPingback
Share data about this installation with MediaWiki developers.
$wgSpamRegex
Edits matching these regular expressions in body text will be recognised as spam and rejected automat...
$wgRCEngines
Used by RecentChange::getEngine to find the correct engine for a given URI scheme.
$wgPasswordExpirationDays
The number of days that a user's password is good for.
$wgDjvuTxt
Path of the djvutxt DJVU text extraction utility Enable this and $wgDjvuDump to enable text layer ext...
string bool $wgBotPasswordsDatabase
Database name for the bot_passwords table.
$wgAllowSchemaUpdates
Allow schema updates.
$wgBlockAllowsUTEdit
Set this to true to allow blocked users to edit their own user talk page.
$wgGroupPermissions
Permission keys given to users in each group.
string[] $wgChangeCredentialsBlacklist
List of AuthenticationRequest class names which are not changeable through Special:ChangeCredentials ...
$wgShowExceptionDetails
If set to true, uncaught exceptions will print the exception message and a complete stack trace to ou...
$wgMimeTypeFile
Sets the MIME type definition file to use by includes/libs/mime/MimeAnalyzer.php.
$wgContentHandlerTextFallback
How to react if a plain text version of a non-text Content object is requested using ContentHandler::...
$wgAllowExternalImages
Whether to allow inline image pointing to other websites.
$wgMaxImageArea
The maximum number of pixels a source image can have if it is to be scaled down by a scaler that requ...
int[] $wgReauthenticateTime
Time frame for re-authentication.
$wgExperiencedUserEdits
Number of edits the user must have before becoming "experienced".
$wgRestPath
The URL path to the REST API Defaults to "{$wgScriptPath}/rest.php".
$wgDBcompress
Whether to use compression in DB connection.
$wgResponsiveImages
Generate and use thumbnails suitable for screens with 1.5 and 2.0 pixel densities.
$wgReservedUsernames
Array of usernames which may not be registered or logged in from Maintenance scripts can still use th...
$wgParserCacheUseJson
Enable JSON serialization for ParserCache.
string $wgSharedThumbnailScriptPath
Shortcut for the 'thumbScriptUrl' setting of $wgForeignFileRepos.
$wgArticleCountMethod
Method used to determine if a page in a content namespace should be counted as a valid article.
$wgPreprocessorCacheThreshold
Preprocessor caching threshold Setting it to 'false' will disable the preprocessor cache.
$wgLocalInterwikis
Array for local interwiki values, for each of the interwiki prefixes that point to the current wiki.
$wgVersion
MediaWiki version number.
$wgEnableUploads
Allow users to upload files.
$wgDebugRawPage
If true, log debugging data from action=raw and load.php.
array $wgReportToEndpoints
List of endpoints for the Reporting API.
$wgAllowJavaUploads
Allow Java archive uploads.
$wgResourceLoaderMaxage
Maximum time in seconds to cache resources served by ResourceLoader.
$wgUploadDialog
Configuration for file uploads using the embeddable upload dialog (https://www.mediawiki....
$wgMemCachedServers
The list of MemCached servers and port numbers.
$wgShowDebug
Display debug data at the bottom of the main content area.
$wgInvalidPasswordReset
Specifies if users should be sent to a password-reset form on login, if their password doesn't meet t...
$wgLocalFileRepo
File repository structures.
string false $wgExternalDiffEngine
Name of the external diff engine to use.
$wgWantedPagesThreshold
Number of links to a page required before it is deemed "wanted".
$wgEnableMagicLinks
Enable the magic links feature of automatically turning ISBN xxx, PMID xxx, RFC xxx into links.
$wgExportMaxLinkDepth
If non-zero, Special:Export accepts a "pagelink-depth" parameter up to this specified level,...
$wgAllowExternalReqID
Whether to respect/honour the request ID provided by the incoming request via the X-Request-Id header...
$wgBlockDisablesLogin
If true, blocked users will not be allowed to login.
$wgRCLinkLimits
List of Limits options to list in the Special:Recentchanges and Special:Recentchangeslinked pages.
$wgMWLoggerDefaultSpi
Default service provider for creating Psr\Log\LoggerInterface instances.
$wgQueryCacheLimit
Number of rows to cache in 'querycache' table when miser mode is on.
$wgResourceLoaderStorageVersion
Cache version for client-side ResourceLoader module storage.
$wgDefaultSkin
Default skin, for new users and anonymous visitors.
$wgStatsdServer
Destination of statsd metrics.
$wgDeletedDirectory
What directory to place deleted uploads in.
$wgSharpenParameter
Sharpening parameter to ImageMagick.
$wgScriptPath
The path we should point to.
$wgAllowImageTag
A different approach to the above: simply allow the "<img>" tag to be used.
$wgThumbPath
The base path for thumb_handler.php.
$wgDataCenterUpdateStickTTL
After a state-changing request is done by a client, this determines how many seconds that client shou...
$wgWANObjectCaches
Advanced WAN object cache configuration.
array $wgNativeImageLazyLoading
Toggles native image lazy loading, via the "loading" attribute.
$wgMaxAnimatedGifArea
Force thumbnailing of animated GIFs above this size to a single frame instead of an animated thumbnai...
$wgDjvuPostProcessor
Shell command for the DJVU post processor Default: pnmtojpeg, since ddjvu generates ppm output Set th...
$wgEmailConfirmToEdit
Should editors be required to have a validated e-mail address before being allowed to edit?
$wgFeedClasses
Available feeds objects.
$wgSearchType
Search type.
$wgUnwatchedPageSecret
If active watchers (per above) are this number or less, do not disclose it.
string false null[] $wgShellboxUrls
Shell commands can be run on a remote server using Shellbox.
$wgAPIRequestLog
Log file or URL (TCP or UDP) to log API requests to, or false to disable API request logging.
$wgShowArchiveThumbnails
Show thumbnails for old images on the image description page.
$wgSpecialVersionShowHooks
Show the contents of $wgHooks in Special:Version.
$wgSearchHighlightBoundaries
Regexp to match word boundaries, defaults for non-CJK languages should be empty for CJK since the wor...
$wgAllowHTMLEmail
For parts of the system that have been updated to provide HTML email content, send both text and HTML...
$wgFragmentMode
How should section IDs be encoded? This array can contain 1 or 2 elements, each of them can be one of...
array false $wgLogos
Specification for different versions of the wiki logo.
$wgConf
$wgConf hold the site configuration.
$wgPoolCounterConf
Configuration for processing pool control, for use in high-traffic wikis.
$wgRevokePermissions
Permission keys revoked from users in each group.
bool $wgAssumeProxiesUseDefaultProtocolPorts
When the wiki is running behind a proxy and this is set to true, assumes that the proxy exposes the w...
array $wgGrantPermissions
Map of (grant => right => boolean) Users authorize consumers (like Apps) to act on their behalf but o...
$wgAPIFormatModules
API format module extensions.
$wgHTTPImportTimeout
Timeout for HTTP requests done internally for transwiki imports, in seconds.
string[] $wgRemoveCredentialsBlacklist
List of AuthenticationRequest class names which are not removable through Special:RemoveCredentials a...
$wgMainStash
The object store type of the main stash.
$wgApiFrameOptions
Disallow framing of API pages directly, by setting the X-Frame-Options header.
float $wgPriorityHintsRatio
Ratio of requests that should get Priority Hints when the feature is enabled.
$wgTranscludeCacheExpiry
Expiry time for transcluded templates cached in object cache.
$wgRCShowChangedSize
Show the amount of changed characters in recent changes.
$wgParserEnableLegacyMediaDOM
Enable legacy media HTML structure in the output from the Parser.
$wgExternalStores
External stores allow including content from non database sources following URL links.
$wgExportAllowHistory
If set to false, disables the full-history option on Special:Export.
$wgCSPFalsePositiveUrls
List of urls which appear often to be triggering CSP reports but do not appear to be caused by actual...
$wgThumbnailEpoch
If rendered thumbnail files are older than this timestamp, they will be rerendered on demand as if th...
$wgMimeInfoFile
Sets the MIME type info file to use by includes/libs/mime/MimeAnalyzer.php.
$wgExtensionAssetsPath
The URL path of the extensions directory.
$wgEnableDnsBlacklist
Whether to use DNS blacklists in $wgDnsBlacklistUrls to check for open proxies.
$wgDebugToolbar
Display the new debugging toolbar.
$wgUseImageMagick
Resizing can be done using PHP's internal image libraries or using ImageMagick or another third-party...
$wgAsyncHTTPTimeout
Timeout for Asynchronous (background) HTTP requests, in seconds.
$wgUseMediaWikiUIEverywhere
Temporary variable that applies MediaWiki UI wherever it can be supported.
$wgHideUserContribLimit
The maximum number of edits a user can have and can still be hidden by users with the hideuser permis...
$wgJpegTran
used for lossless jpeg rotation
$wgMaxSigChars
Maximum number of Unicode characters in signature.
$wgPasswordDefault
Default password type to use when hashing user passwords.
$wgStrictFileExtensions
If this is turned off, users may override the warning for files not covered by $wgFileExtensions.
$wgDBTableOptions
MySQL table options to use during installation or update.
$wgVariantArticlePath
Like $wgArticlePath, but on multi-variant wikis, this provides a path format that describes which par...
$wgForeignFileRepos
Enable the use of files from one or more other wikis.
$wgUseCategoryBrowser
Use experimental, DMOZ-like category browser.
bool $wgSearchMatchRedirectPreference
Set true to allow logged-in users to set a preference whether or not matches in search results should...
$wgRepositoryBaseUrl
Shortcut for the 'descBaseUrl' setting of $wgForeignFileRepos.
$wgMemCachedPersistent
Use persistent connections to MemCached, which are shared across multiple requests.
float int $wgHTTPConnectTimeout
Timeout for connections done internally (in seconds).
$wgFilterLogTypes
Show/hide links on Special:Log will be shown for these log types.
string null $wgDiffEngine
Specify the difference engine to use.
$wgLogHeaders
Lists the message key string for descriptive text to be shown at the top of each log type.
$wgCdnMaxAge
Cache TTL for the CDN sent as s-maxage (without ESI) or Surrogate-Control (with ESI).
$wgVaryOnXFP
Add X-Forwarded-Proto to the Vary and Key headers for API requests and RSS/Atom feeds.
$wgDebugLogGroups
Map of string log group names to log destinations.
int null $wgRequestTimeLimit
Set a limit on server request wall clock time.
string $wgRememberMe
Configures RememberMe authentication request added by AuthManager.
$wgSVGConverterPath
If not in the executable PATH, specify the SVG converter path.
$wgSharedDB
Shared database for multiple wikis.
$wgPasswordConfig
Configuration for built-in password types.
$wgSessionCacheType
The cache backend for storing session data.
float $wgCriticalSectionTimeLimit
The maximum time critical sections are allowed to stay open.
$wgExtensionDirectory
Filesystem extensions directory.
$wgEnotifMinorEdits
Potentially send notification mails on minor edits to pages.
$wgStatsdSamplingRates
Sampling rate for statsd metrics as an associative array of patterns and rates.
$wgEnableScaryTranscluding
Enable interwiki transcluding.
$wgDebugDumpSql
Write SQL queries to the debug log.
$wgDatabaseReplicaLagWarning
If lag is higher than $wgDatabaseReplicaLagWarning, show a warning in some special pages (like watchl...
$wgExternalLinkTarget
Set a default target for external links, e.g.
$wgDummyLanguageCodes
Functionally the same as $wgExtraLanguageCodes, but deprecated.
$wgSearchTypeAlternatives
Alternative search types.
$wgFooterLinkCacheExpiry
Expiry time for the footer link cache, in seconds, or 0 if disabled.
$wgExiv2Command
Some tests and extensions use exiv2 to manipulate the Exif metadata in some image formats.
$wgAllowSlowParserFunctions
Enable slow parser functions.
bool[] $wgAllowSecuritySensitiveOperationIfCannotReauthenticate
Whether to allow security-sensitive operations when re-authentication is not possible.
$wgAttemptFailureEpoch
Certain operations are avoided if there were too many recent failures, for example,...
float[] $wgJobBackoffThrottling
Map of job types to how many job "work items" should be run per second on each job runner process.
$wgExternalInterwikiFragmentMode
Which ID escaping mode should be used for external interwiki links? See documentation for $wgFragment...
$wgDBserver
Database host name or IP address.
$wgRecentChangesFlags
Flags (letter symbols) shown in recent changes and watchlist to indicate certain types of edits.
bool $wgForceHTTPS
If this is true, when an insecure HTTP request is received, always redirect to HTTPS.
$wgSquidPurgeUseHostHeader
Whether to use a Host header in purge requests sent to the proxy servers configured in $wgCdnServers.
$wgLoadScript
The URL path to load.php.
$wgDnsBlacklistUrls
List of DNS blacklists to use, if $wgEnableDnsBlacklist is true.
$wgCookieSecure
Whether the "secure" flag should be set on the cookie.
string bool $wgShellRestrictionMethod
Method to use to restrict shell commands.
$wgMimeTypeExclusions
Files with these MIME types will never be allowed as uploads if $wgVerifyMimeType is enabled.
$wgDebugRedirects
If true, instead of redirecting, show a page with a link to the redirect destination.
$wgAPIModules
API module extensions.
$wgExtraLanguageCodes
List of mappings from one language code to another.
$wgSpecialPageCacheUpdates
Additional functions to be performed with updateSpecialPages.
$wgOpenSearchDescriptionLength
Minimum length of extract in .
$wgResourceLoaderValidateJS
If set to true, JavaScript modules loaded from wiki pages will be parsed prior to minification to val...
$wgSMTP
SMTP Mode.
$wgLanguageConverterCacheType
The cache type for storing language conversion tables, which are used when parsing certain text and i...
$wgCanonicalServer
Canonical URL of the server, to use in IRC feeds and notification e-mails.
$wgMiserMode
Disable database-intensive features.
$wgOverrideSiteFeed
Override the site's default RSS/ATOM feed for recentchanges that appears on every page.
$wgAutoConfirmAge
Number of seconds an account is required to age before it's given the implicit 'autoconfirm' group me...
$wgCacheVaryCookies
A list of cookies that vary the cache (for use by extensions)
$wgNamespaceAliases
Define extra namespace aliases.
bool array string $wgInterwikiCache
Interwiki cache, either as an associative array or a path to a constant database (....
$wgTrivialMimeDetection
Switch for trivial MIME detection.
$wgStylePath
The URL path of the skins directory.
$wgDjvuDump
Path of the djvudump executable Enable this and $wgDjvuRenderer to enable djvu rendering example: $wg...
array string bool $wgReferrerPolicy
Value for the referrer policy meta tag.
$wgServer
URL of the server.
$wgDBssl
Whether to use SSL in DB connection.
$wgRCFilterByAge
Filter $wgRCLinkDays by $wgRCMaxAge to avoid showing links for numbers higher than what will be store...
$wgUploadThumbnailRenderMethod
The method through which the thumbnails will be prerendered for the entries in $wgUploadThumbnailRend...
$wgMinimalPasswordLength
Specifies the minimal length of a user password.
$wgCookieSetOnIpBlock
Whether to set a cookie when a logged-out user is blocked.
int $wgManualRevertSearchRadius
Maximum number of revisions of a page that will be checked against every new edit made to determine w...
$wgPropagateErrors
If true, the MediaWiki error handler passes errors/warnings to the default error handler after loggin...
$wgUploadThumbnailRenderHttpCustomDomain
When using the "http" $wgUploadThumbnailRenderMethod, lets one specify a custom domain to send the HT...
$wgRCWatchCategoryMembership
Treat category membership changes as a RecentChange.
$wgFeed
Provide syndication feeds (RSS, Atom) for, e.g., Recentchanges, Newpages.
$wgWatchersMaxAge
Page watchers inactive for more than this many seconds are considered inactive.
$wgSessionPbkdf2Iterations
Number of internal PBKDF2 iterations to use when deriving session secrets.
$wgRunJobsAsync
When $wgJobRunRate > 0, try to run jobs asynchronously, spawning a new process to handle the job exec...
$wgMetaNamespace
Name of the project namespace.
$wgExtensionCredits
Add information about an installed extension, keyed by its type.
$wgEmailAuthentication
Require email authentication before sending mail to an email address.
$wgLogo
The URL path of the wiki logo.
$wgDevelopmentWarnings
If set to true MediaWiki will throw notices for some possible error conditions and for deprecated fun...
$wgEdititis
Display user edit counts in various prominent places.
float int $wgHTTPMaxConnectTimeout
The maximum HTTP connect timeout in seconds.
$wgCdnServersNoPurge
As with $wgCdnServers, except these servers aren't purged on page changes; use to set a list of trust...
string[] $wgRawHtmlMessages
List of messages which might contain raw HTML.
bool $wgSearchRunSuggestedQuery
Controls whether zero-result search queries with suggestions should display results for these suggest...
$wgStyleSheetPath
URL of the server.
$wgJobClasses
Maps jobs to their handlers; extensions can add to this to provide custom jobs.
$wgTrustedMediaFormats
list of trusted media-types and MIME types.
$wgNamespaceContentModels
Associative array mapping namespace IDs to the name of the content model pages in that namespace shou...
$wgSVGConverters
Scalable Vector Graphics (SVG) may be uploaded as images.
$wgUseFileCache
This will cache static pages for non-logged-in users to reduce database traffic on public sites.
$wgMaxUploadSize
Max size for uploads, in bytes.
$wgHtml5Version
Defines the value of the version attribute in the <html> tag, if any.
string[] $wgLocalDatabases
Other wikis on this site, can be administered from a single developer account.
$wgParserTestMediaHandlers
Media handler overrides for parser tests (they don't need to generate actual thumbnails,...
$wgSessionSecret
Secret for session storage.
array $wgSpecialSearchFormOptions
Options for Special:Search completion widget form created by SearchFormWidget class.
$wgOpenSearchDefaultLimit
Integer defining default number of entries to show on OpenSearch call.
$wgMaxCredits
Set this to the number of authors that you want to be credited below an article text.
$wgInterlanguageLinkCodeMap
Map of interlanguage link codes to language codes.
$wgSharedSchema
$wgEditPageFrameOptions
The X-Frame-Options header to send on pages sensitive to clickjacking attacks, such as edit pages.
$wgDebugLogFile
Filename for debug logging.
$wgAccountCreationThrottle
Number of accounts each IP address may create per specified period(s).
$wgSessionInsecureSecrets
If for some reason you can't install the PHP OpenSSL extension, you can set this to true to make Medi...
$wgForceUIMsgAsContentMsg
When translating messages with wfMessage(), it is not always clear what should be considered UI messa...
$wgPasswordSender
Sender email address for e-mail notifications.
$wgLogActionsHandlers
The same as above, but here values are names of classes, not messages.
$wgRateLimits
Simple rate limiter options to brake edit floods.
$wgNamespacesToBeSearchedDefault
List of namespaces which are searched by default.
$wgEnableCanonicalServerLink
Output a <link rel="canonical"> tag on every page indicating the canonical server which should be use...
$wgPasswordReminderResendTime
Minimum time, in hours, which must elapse between password reminder emails for a given account.
$wgUpdateRowsPerQuery
Number of rows to update per query.
$wgUploadThumbnailRenderMap
When defined, is an array of thumbnail widths to be rendered at upload time.
$wgTiffThumbnailType
Browsers don't support TIFF inline generally... For inline display, we need to convert to PNG or JPEG...
$wgCdnServers
List of proxy servers to purge on changes; default port is 80.
$wgCopyUploadProxy
Proxy to use for copy upload requests.
string $wgSharedUploadPath
Shortcut for the 'url' setting of $wgForeignFileRepos.
$wgSVGMetadataCutoff
Don't read SVG metadata beyond this point.
int bool $wgMaxUserDBWriteDuration
Max time (in seconds) a user-generated transaction can spend in writes.
$wgXhtmlNamespaces
Permit other namespaces in addition to the w3.org default.
$wgMetaNamespaceTalk
Name of the project talk namespace.
$wgExpensiveParserFunctionLimit
Maximum number of calls per parse to expensive parser functions such as PAGESINCATEGORY.
$wgLocalTZoffset
Set an offset from UTC in minutes to use for the default timezone setting for anonymous users and new...
$wgHTMLFormAllowTableFormat
Temporary variable that allows HTMLForms to be rendered as tables.
$wgDisableQueryPages
Disable all query pages if miser mode is on, not just some.
$wgExiftool
Path to exiftool binary.
$wgCookiePrefix
Cookies generated by MediaWiki have names starting with this prefix.
$wgResourceModuleSkinStyles
Add extra skin-specific styles to a resource module.
$wgResourceLoaderUseObjectCacheForDeps
Use the main stash instead of the module_deps table for indirect dependency tracking.
$wgAPIMaxDBRows
Maximum amount of rows to scan in a DB query in the API The default value is generally fine.
$wgExtraLanguageNames
List of language names or overrides for default names in Names.php.
$wgSharedPrefix
$wgHTCPMulticastTTL
HTCP multicast TTL.
$wgLBFactoryConf
Load balancer factory configuration To set up a multi-primary wiki farm, set the class here to someth...
array $wgGrantPermissionGroups
Map of grants to their UI grouping.
string bool $wgBotPasswordsCluster
Cluster for the bot_passwords table If false, the normal cluster will be used.
$wgEventRelayerConfig
Mapping of event channels (or channel categories) to EventRelayer configuration.
$wgImportTargetNamespace
Optional default target namespace for interwiki imports.
$wgRightsPage
Override for copyright metadata.
$wgAPICacheHelpTimeout
Set the timeout for the API help text cache.
$wgMainWANCache
Main Wide-Area-Network cache type.
$wgMaxShellTime
Maximum CPU time in seconds for shell processes under Linux.
$wgLocalisationCacheConf
Localisation cache configuration.
$wgMaxTocLevel
Maximum indent level of toc.
$wgOpenSearchTemplates
Templates for OpenSearch suggestions, defaults to API action=opensearch.
$wgLinkHolderBatchSize
LinkHolderArray batch size For debugging.
$wgSearchSuggestCacheExpiry
Expiry time for search suggestion responses.
$wgAutopromoteOnce
Automatically add a usergroup to any user who matches certain conditions.
$wgMimeDetectorCommand
Sets an external MIME detector program.
$wgContentHandlers
Plugins for page content model handling.
$wgHttpsPort
For installations where the canonical server is HTTP but HTTPS is optionally supported,...
bool $wgAllowCrossOrigin
Allow anonymous cross origin requests.
$wgCopyUploadsFromSpecialUpload
Enable copy uploads from Special:Upload.
array $wgOriginTrials
Origin Trials tokens.
$wgImageMagickConvertCommand
The convert command shipped with ImageMagick.
$wgUsePrivateIPs
Should forwarded Private IPs be accepted?
$wgGitBin
Fully specified path to git binary.
int $wgActorTableSchemaMigrationStage
Actor table schema migration stage, for migration from the temporary table revision_actor_temp to the...
$wgAjaxExportList
List of Ajax-callable functions.
$wgDiff
Path to the GNU diff utility.
$wgDBpassword
Database user's password.
$wgFavicon
The URL path of the shortcut icon.
$wgShowEXIF
Show Exif data, on by default if available.
$wgTidyConfig
Configuration for HTML postprocessing tool.
float bool $wgJobSerialCommitThreshold
Make job runners commit changes for replica DB-lag prone jobs one job at a time.
$wgAllowCopyUploads
Allow for upload to be copied from an URL.
$wgUseSiteJs
Use the site's Javascript page?
$wgRCLinkDays
List of Days options to list in the Special:Recentchanges and Special:Recentchangeslinked pages.
$wgEnotifUseRealName
Use real name instead of username in e-mail "from" field.
bool $wgEnablePartialActionBlocks
Flag to enable partial blocks against performing certain actions.
$wgNewUserLog
Maintain a log of newusers at Special:Log/newusers?
$wgTextModelsToParse
Determines which types of text are parsed as wikitext.
$wgDisableTitleConversion
Whether to enable language variant conversion for links.
$wgSpecialPages
Special page list.
const AV_SCAN_FAILED
Definition Defines.php:98
const AV_VIRUS_FOUND
Definition Defines.php:96
const APCOND_AGE
Definition Defines.php:179
const NS_HELP
Definition Defines.php:76
const NS_USER
Definition Defines.php:66
const CONTENT_MODEL_CSS
Definition Defines.php:210
const CACHE_NONE
Definition Defines.php:86
const CACHE_ANYTHING
Definition Defines.php:85
const MW_VERSION
The running version of MediaWiki.
Definition Defines.php:36
const NS_MEDIAWIKI_TALK
Definition Defines.php:73
const NS_MAIN
Definition Defines.php:64
const NS_PROJECT_TALK
Definition Defines.php:69
const NS_MEDIAWIKI
Definition Defines.php:72
const NS_TEMPLATE
Definition Defines.php:74
const CACHE_ACCEL
Definition Defines.php:89
const NS_FILE_TALK
Definition Defines.php:71
const XML_DUMP_SCHEMA_VERSION_11
Definition Defines.php:314
const CONTENT_MODEL_WIKITEXT
Definition Defines.php:208
const CONTENT_MODEL_JSON
Definition Defines.php:212
const NS_HELP_TALK
Definition Defines.php:77
const NS_CATEGORY_TALK
Definition Defines.php:79
const CACHE_MEMCACHED
Definition Defines.php:88
const CONTENT_MODEL_TEXT
Definition Defines.php:211
const CACHE_DB
Definition Defines.php:87
const AV_SCAN_ABORTED
Definition Defines.php:97
const APCOND_EDITCOUNT
Definition Defines.php:178
const NS_TALK
Definition Defines.php:65
const SCHEMA_COMPAT_NEW
Definition Defines.php:276
const AV_NO_VIRUS
Definition Defines.php:95
const NS_USER_TALK
Definition Defines.php:67
const SCHEMA_COMPAT_TEMP
Definition Defines.php:275
const CONTENT_MODEL_UNKNOWN
Definition Defines.php:213
const NS_PROJECT
Definition Defines.php:68
const NS_CATEGORY
Definition Defines.php:78
const CONTENT_MODEL_JAVASCRIPT
Definition Defines.php:209
const NS_TEMPLATE_TALK
Definition Defines.php:75
global $wgCommandLineMode
This is a class for holding configuration settings, particularly for multi-wiki sites.
const MEDIATYPE_VIDEO
Definition defines.php:35
const MEDIATYPE_AUDIO
Definition defines.php:32
const MEDIATYPE_BITMAP
Definition defines.php:28
return true
Definition router.php:92