MediaWiki REL1_38
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
196
202$wgScript = false;
203
211
218
225
232
239
247
255
266
275
281
295
303
308
314
322$wgLogo = false;
323
374$wgLogos = false;
375
406$wgLogoHD = false;
407
412$wgFavicon = '/favicon.ico';
413
420
440
463
470
483
499
509
510// endregion -- end of server URLs and file paths
511
512/***************************************************************************/
513// region Files and file uploads
526
530$wgUploadStashMaxAge = 6 * 3600; // 6 hours
531
541
546
555
561
566
582
718
733
744
774
783
792
801
808$wgRepositoryBaseUrl = 'https://commons.wikimedia.org/wiki/File:';
809
818
828
837
846
857
868 // Fields to make available in the dialog. `true` means that this field is visible, `false` means
869 // that it is hidden. The "Name" field can't be hidden. Note that you also have to add the
870 // matching replacement to the 'filepage' format key below to make use of these.
871 'fields' => [
872 'description' => true,
873 'date' => false,
874 'categories' => false,
875 ],
876 // Suffix of localisation messages used to describe the license under which the uploaded file will
877 // be released. The same value may be set for both 'local' and 'foreign' uploads.
878 'licensemessages' => [
879 // The 'local' messages are used for local uploads on this wiki:
880 // * upload-form-label-own-work-message-generic-local
881 // * upload-form-label-not-own-work-message-generic-local
882 // * upload-form-label-not-own-work-local-generic-local
883 'local' => 'generic-local',
884 // The 'foreign' messages are used for cross-wiki uploads from other wikis to this wiki:
885 // * upload-form-label-own-work-message-generic-foreign
886 // * upload-form-label-not-own-work-message-generic-foreign
887 // * upload-form-label-not-own-work-local-generic-foreign
888 'foreign' => 'generic-foreign',
889 ],
890 // Upload comments to use for 'local' and 'foreign' uploads. This can also be set to a single
891 // string value, in which case it is used for both kinds of uploads. Available replacements:
892 // * $HOST - domain name from which a cross-wiki upload originates
893 // * $PAGENAME - wiki page name from which an upload originates
894 'comment' => [
895 'local' => '',
896 'foreign' => '',
897 ],
898 // Format of the file page wikitext to be generated from the fields input by the user.
899 'format' => [
900 // Wrapper for the whole page. Available replacements:
901 // * $DESCRIPTION - file description, as input by the user (only if the 'description' field is
902 // enabled), wrapped as defined below in the 'description' key
903 // * $DATE - file creation date, as input by the user (only if the 'date' field is enabled)
904 // * $SOURCE - as defined below in the 'ownwork' key, may be extended in the future
905 // * $AUTHOR - linked user name, may be extended in the future
906 // * $LICENSE - as defined below in the 'license' key, may be extended in the future
907 // * $CATEGORIES - file categories wikitext, as input by the user (only if the 'categories'
908 // field is enabled), or if no input, as defined below in the 'uncategorized' key
909 'filepage' => '$DESCRIPTION',
910 // Wrapped for file description. Available replacements:
911 // * $LANGUAGE - source wiki's content language
912 // * $TEXT - input by the user
913 'description' => '$TEXT',
914 'ownwork' => '',
915 'license' => '',
916 'uncategorized' => '',
917 ],
918];
919
957
969
982
987
994
1001
1008
1014
1026
1047$wgMaxUploadSize = 1024 * 1024 * 100;
1048
1064
1076
1083
1096
1105
1113
1122$wgFileExtensions = [ 'png', 'gif', 'jpg', 'jpeg', 'webp' ];
1123
1132 # HTML may contain cookie-stealing JavaScript and web bugs
1133 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht',
1134 # PHP scripts may execute arbitrary code on the server
1135 'php', 'phtml', 'php3', 'php4', 'php5', 'phps', 'phar',
1136 # Other types that may be interpreted by some servers
1137 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1138 # May contain harmful executables for Windows victims
1139 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl'
1140];
1141
1149 # HTML may contain cookie-stealing JavaScript and web bugs
1150 'text/html',
1151 # Similarly with JavaScript itself
1152 'application/javascript', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1153 # PHP scripts may execute arbitrary code on the server
1154 'application/x-php', 'text/x-php',
1155 # Other types that may be interpreted by some servers
1156 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
1157 # Client-side hazards on Internet Explorer
1158 'text/scriptlet', 'application/x-msdownload',
1159 # Windows metafile, client-side vulnerability on some systems
1160 'application/x-msmetafile',
1161];
1162
1169
1176
1184
1192
1197
1209 MEDIATYPE_BITMAP, // all bitmap formats
1210 MEDIATYPE_AUDIO, // all audio formats
1211 MEDIATYPE_VIDEO, // all plain video formats
1212 "image/svg+xml", // svg (only needed if inline rendering of svg is not supported)
1213 "application/pdf", // PDF files
1214 # "application/x-shockwave-flash", //flash/shockwave movie
1215];
1216
1225
1235
1241 'image/jpeg' => 'MockBitmapHandler',
1242 'image/png' => 'MockBitmapHandler',
1243 'image/gif' => 'MockBitmapHandler',
1244 'image/tiff' => 'MockBitmapHandler',
1245 'image/webp' => 'MockBitmapHandler',
1246 'image/x-ms-bmp' => 'MockBitmapHandler',
1247 'image/x-bmp' => 'MockBitmapHandler',
1248 'image/x-xcf' => 'MockBitmapHandler',
1249 'image/svg+xml' => 'MockSvgHandler',
1250 'image/vnd.djvu' => 'MockDjVuHandler',
1251];
1252
1259
1269
1273$wgImageMagickConvertCommand = '/usr/bin/convert';
1274
1280
1285
1290
1296
1310
1316$wgJpegTran = '/usr/bin/jpegtran';
1317
1338
1347
1352$wgExiv2Command = '/usr/bin/exiv2';
1353
1359$wgExiftool = '/usr/bin/exiftool';
1360
1371 'ImageMagick' =>
1372 '$path/convert -background "#ffffff00" -thumbnail $widthx$height\! $input PNG:$output',
1373 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1374 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1375 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d '
1376 . '$output $input',
1377 'rsvg' => '$path/rsvg-convert -w $width -h $height -o $output $input',
1378 'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output',
1379 'ImagickExt' => [ 'SvgHandler::rasterizeImagickExt' ],
1380];
1381
1385$wgSVGConverter = 'ImageMagick';
1386
1391
1396
1402
1412
1433
1441
1456
1463$wgThumbnailEpoch = '20030516000000';
1464
1472
1485
1507
1512
1519
1526
1562
1563 # setup for clamav
1564 'clamav' => [
1565 'command' => 'clamscan --no-summary ',
1566 'codemap' => [
1567 "0" => AV_NO_VIRUS, # no virus
1568 "1" => AV_VIRUS_FOUND, # virus found
1569 "52" => AV_SCAN_ABORTED, # unsupported file format (probably immune)
1570 "*" => AV_SCAN_FAILED, # else scan failed
1571 ],
1572 'messagepattern' => '/.*?:(.*)/sim',
1573 ],
1574];
1575
1580
1585
1595
1605$wgMimeTypeFile = 'internal';
1606
1611$wgMimeInfoFile = 'internal';
1612
1625
1632
1638 'http://www.w3.org/2000/svg:svg' => 'image/svg+xml',
1639 'svg' => 'image/svg+xml',
1640 'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram',
1641 'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml?
1642 'html' => 'text/html', // application/xhtml+xml?
1643];
1644
1656 [ 320, 240 ],
1657 [ 640, 480 ],
1658 [ 800, 600 ],
1659 [ 1024, 768 ],
1660 [ 1280, 1024 ],
1661 [ 2560, 2048 ],
1662];
1663
1670 120,
1671 150,
1672 180,
1673 200,
1674 250,
1675 300
1676];
1677
1688
1705
1716
1729
1736
1744
1752
1768
1775
1780
1788
1806
1807/***************************************************************************/
1808// region DJVU settings
1817
1824
1831
1838
1843
1844// endregion -- end of DJvu
1845
1846// endregion -- end of file uploads
1847
1848/***************************************************************************/
1849// region Email settings
1858
1868
1875
1882
1888
1898
1905
1916
1922
1926$wgNewPasswordExpiry = 3600 * 24 * 7;
1927
1932
1938
1943$wgPasswordExpireGrace = 3600 * 24 * 7; // 7 days
1944
1962$wgSMTP = false;
1963
1968
1974
1987
1988// TODO move UPO to preferences probably ?
1989# If set to true, users get a corresponding option in their preferences and can choose to
1990# enable or disable at their discretion
1991# If set to false, the corresponding input form on the user preference page is suppressed
1992# It call this to be a "user-preferences-option (UPO)"
1993
2000
2005
2014
2030
2045
2054
2060
2065
2071
2072// endregion -- end of email settings
2073
2074/***************************************************************************/
2075// region Database settings
2086$wgDBname = 'my_wiki';
2087
2097
2107
2111$wgDBserver = 'localhost';
2112
2117
2121$wgDBuser = 'wikiuser';
2122
2127
2131$wgDBtype = 'mysql';
2132
2141$wgDBssl = false;
2142
2152
2157
2162
2175
2189
2193$wgDBTableOptions = 'ENGINE=InnoDB, DEFAULT CHARSET=binary';
2194
2202
2209
2214
2241
2246
2251$wgSharedTables = [ 'user', 'user_properties' ];
2252
2258
2313
2324$wgLBFactoryConf = [ 'class' => \Wikimedia\Rdbms\LBFactorySimple::class ];
2325
2337
2342
2362
2377
2386
2393
2400
2423
2445
2459
2460// endregion -- End of DB settings
2461
2462/***************************************************************************/
2463// region Content handlers and storage
2474 // the usual case
2475 CONTENT_MODEL_WIKITEXT => WikitextContentHandler::class,
2476 // dumb version, no syntax highlighting
2477 CONTENT_MODEL_JAVASCRIPT => JavaScriptContentHandler::class,
2478 // simple implementation, for use by extensions, etc.
2479 CONTENT_MODEL_JSON => JsonContentHandler::class,
2480 // dumb version, no syntax highlighting
2481 CONTENT_MODEL_CSS => CssContentHandler::class,
2482 // plain text, for use by extensions, etc.
2483 CONTENT_MODEL_TEXT => TextContentHandler::class,
2484 // fallback for unknown models, from imports or extensions that were removed
2485 CONTENT_MODEL_UNKNOWN => FallbackContentHandler::class,
2486];
2487
2500
2513
2525 CONTENT_MODEL_WIKITEXT, // Just for completeness, wikitext will always be parsed.
2526 CONTENT_MODEL_JAVASCRIPT, // Make categories etc work, people put them into comments.
2527 CONTENT_MODEL_CSS, // Make categories etc work, people put them into comments.
2528];
2529
2537
2551
2573
2588
2598
2606
2621
2627
2628// endregion -- end of Content handlers and storage
2629
2630/***************************************************************************/
2631// region Performance hacks and limits
2645
2656
2673
2678
2683
2688
2693
2698
2703
2708
2714
2748
2757
2766
2772
2777
2790
2791// endregion -- end performance hacks
2792
2793/***************************************************************************/
2794// region Cache settings
2806
2825
2833
2841
2850
2860
2875 CACHE_NONE => [ 'class' => EmptyBagOStuff::class, 'reportDupes' => false ],
2876 CACHE_DB => [ 'class' => SqlBagOStuff::class, 'loggroup' => 'SQLBagOStuff' ],
2877
2878 CACHE_ANYTHING => [ 'factory' => 'ObjectCache::newAnything' ],
2879 CACHE_ACCEL => [ 'factory' => 'ObjectCache::getLocalServerInstance' ],
2880
2881 'db-replicated' => [
2882 'class' => ReplicatedBagOStuff::class,
2883 'readFactory' => [
2884 'factory' => 'ObjectCache::newFromParams',
2885 'args' => [ [ 'class' => SqlBagOStuff::class, 'replicaOnly' => true ] ]
2886 ],
2887 'writeFactory' => [
2888 'factory' => 'ObjectCache::newFromParams',
2889 'args' => [ [ 'class' => SqlBagOStuff::class, 'replicaOnly' => false ] ]
2890 ],
2891 'loggroup' => 'SQLBagOStuff',
2892 'reportDupes' => false
2893 ],
2894 'memcached-php' => [ 'class' => MemcachedPhpBagOStuff::class, 'loggroup' => 'memcached' ],
2895 'memcached-pecl' => [ 'class' => MemcachedPeclBagOStuff::class, 'loggroup' => 'memcached' ],
2896 'hash' => [ 'class' => HashBagOStuff::class, 'reportDupes' => false ],
2897
2898 // Deprecated since 1.35.
2899 // - To configure a wg*CacheType variable to use the local server cache,
2900 // use CACHE_ACCEL instead, which will select these automatically.
2901 // - To access the object for the local server cache at run-time,
2902 // use MediaWikiServices::getLocalServerObjectCache()
2903 // instead of e.g. ObjectCache::getInstance( 'apcu' ).
2904 // - To instantiate a new one of these explicitly, do so directly
2905 // by using `new APCUBagOStuff( [ … ] )`
2906 // - To instantiate a new one of these including auto-detection and fallback,
2907 // use ObjectCache::makeLocalServerCache().
2908 'apc' => [ 'class' => APCUBagOStuff::class, 'reportDupes' => false ],
2909 'apcu' => [ 'class' => APCUBagOStuff::class, 'reportDupes' => false ],
2910 'wincache' => [ 'class' => WinCacheBagOStuff::class, 'reportDupes' => false ],
2911];
2912
2935
2962 CACHE_NONE => [
2963 'class' => WANObjectCache::class,
2964 'cacheId' => CACHE_NONE,
2965 ]
2966];
2967
2980
3008$wgMainStash = 'db-replicated';
3009
3026
3032
3038
3043
3061
3070
3077
3081$wgMemCachedServers = [ '127.0.0.1:11211' ];
3082
3088
3093
3106
3114
3147 'class' => LocalisationCache::class,
3148 'store' => 'detect',
3149 'storeClass' => false,
3150 'storeDirectory' => false,
3151 'storeServer' => [],
3152 'forceRecache' => false,
3153 'manualRecache' => false,
3154];
3155
3160
3169$wgCacheEpoch = '20030516000000';
3170
3176
3183
3191
3197
3208
3213
3220
3228
3239
3256
3272
3280
3281// endregion -- end of cache settings
3282
3283/***************************************************************************/
3284// region HTTP proxy (CDN) settings
3304
3314
3324
3335
3343
3351
3367
3374
3381
3393
3403
3425
3473
3479
3484
3485// endregion -- end of HTTP proxy settings
3486
3487/***************************************************************************/
3488// region Language, regional and character encoding settings
3508
3519
3524
3529
3544
3553
3558
3573 // Language codes of macro languages, which get mapped to the main language
3574 'bh' => 'bho', // Bihari language family
3575 'no' => 'nb', // Norwegian language family
3576
3577 // Language variants which get mapped to the main language
3578 'simple' => 'en', // Simple English
3579];
3580
3588
3597
3609
3623
3629
3635
3641
3646
3651
3656
3661
3667
3678
3697
3704
3725
3738 'copyright',
3739 'history_copyright',
3740 'googlesearch',
3741 'feedback-terms',
3742 'feedback-termsofuse',
3743];
3744
3769
3780
3793
3794// endregion -- End of language/charset settings
3795
3796/***************************************************************************/
3797// region Output format and skin settings
3803$wgMimeType = 'text/html';
3804
3814
3823
3831
3840
3856
3865
3878
3891
3897
3903$wgFallbackSkin = 'fallback';
3904
3916
3921
3950$wgFragmentMode = [ 'html5', 'legacy' ];
3951
3961
3993 "copyright" => [
3994 "copyright" => [], // placeholder for the built in copyright icon
3995 ],
3996 "poweredby" => [
3997 "mediawiki" => [
3998 // Defaults to point at
3999 // "$wgResourceBasePath/resources/assets/poweredby_mediawiki_88x31.png"
4000 // plus srcset for 1.5x, 2x resolution variants.
4001 "src" => null,
4002 "url" => "https://www.mediawiki.org/",
4003 "alt" => "Powered by MediaWiki",
4004 ]
4005 ],
4006];
4007
4015
4020
4033
4044
4052
4062
4063// endregion -- End of output format settings
4064
4065/***************************************************************************/
4066// region ResourceLoader settings
4377
4468
4480
4486
4508 'versioned' => 30 * 24 * 60 * 60, // 30 days
4509 'unversioned' => 5 * 60, // 5 minutes
4510];
4511
4519
4526
4533
4548
4557
4567
4573
4581
4594
4605
4606// endregion -- End of ResourceLoader settings
4607
4608/***************************************************************************/
4609// region Page titles and redirects
4617
4626
4632$wgCanonicalNamespaceNames = NamespaceInfo::CANONICAL_NAMES;
4633
4661
4669
4692
4717$wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
4718
4727
4742
4748 NS_TALK => true,
4749 NS_USER => true,
4750 NS_USER_TALK => true,
4751 NS_PROJECT => true,
4752 NS_PROJECT_TALK => true,
4753 NS_FILE_TALK => true,
4754 NS_MEDIAWIKI => true,
4755 NS_MEDIAWIKI_TALK => true,
4756 NS_TEMPLATE => true,
4757 NS_TEMPLATE_TALK => true,
4758 NS_HELP => true,
4759 NS_HELP_TALK => true,
4761];
4762
4770
4778
4787
4794
4805$wgInvalidRedirectTargets = [ 'Filepath', 'Mypage', 'Mytalk', 'Redirect' ];
4806
4816
4822
4823// endregion -- End of title and interwiki settings
4824
4825/***************************************************************************/
4826// region Interwiki links and sites
4847
4855
4860
4879
4887
4892
4909
4916 'mediawiki' => MediaWikiSite::class,
4917];
4918
4919// endregion -- Interwiki links and sites
4920
4921/***************************************************************************/
4922// region Parser settings
4931
4937
4945
4950
4962 'bitcoin:', 'ftp://', 'ftps://', 'geo:', 'git://', 'gopher://', 'http://',
4963 'https://', 'irc://', 'ircs://', 'magnet:', 'mailto:', 'matrix:', 'mms://',
4964 'news:', 'nntp://', 'redis://', 'sftp://', 'sip:', 'sips:', 'sms:',
4965 'ssh://', 'svn://', 'tel:', 'telnet://', 'urn:', 'worldwind://', 'xmpp:',
4966 '//',
4967];
4968
4973
4978
4992
5005
5016
5036
5044
5053
5060
5071
5079
5085
5099$wgNoFollowDomainExceptions = [ 'mediawiki.org' ];
5100
5106
5111
5118
5124
5130
5135
5141
5149 'ISBN' => false,
5150 'PMID' => false,
5151 'RFC' => false
5152];
5153
5154// endregion -- end of parser settings
5155
5156/***************************************************************************/
5157// region Statistics and content analysis
5177
5186
5200
5206
5212
5218
5239
5254
5255// endregion -- End of statistics and content analysis
5256
5257/***************************************************************************/
5258// region User accounts, authentication
5267 'local' => [
5268 'class' => LocalIdLookup::class,
5269 'services' => [
5270 'MainConfig',
5271 'DBLoadBalancer',
5272 ]
5273 ],
5274];
5275
5281
5345 'policies' => [
5346 'bureaucrat' => [
5347 'MinimalPasswordLength' => 10,
5348 'MinimumPasswordLengthToLogin' => 1,
5349 ],
5350 'sysop' => [
5351 'MinimalPasswordLength' => 10,
5352 'MinimumPasswordLengthToLogin' => 1,
5353 ],
5354 'interface-admin' => [
5355 'MinimalPasswordLength' => 10,
5356 'MinimumPasswordLengthToLogin' => 1,
5357 ],
5358 'bot' => [
5359 'MinimalPasswordLength' => 10,
5360 'MinimumPasswordLengthToLogin' => 1,
5361 ],
5362 'default' => [
5363 'MinimalPasswordLength' => [ 'value' => 1, 'suggestChangeOnLogin' => true ],
5364 'PasswordCannotBeSubstringInUsername' => [
5365 'value' => true,
5366 'suggestChangeOnLogin' => true
5367 ],
5368 'PasswordCannotMatchDefaults' => [ 'value' => true, 'suggestChangeOnLogin' => true ],
5369 'MaximalPasswordLength' => [ 'value' => 4096, 'suggestChangeOnLogin' => true ],
5370 'PasswordNotInCommonList' => [ 'value' => true, 'suggestChangeOnLogin' => true ],
5371 ],
5372 ],
5373 'checks' => [
5374 'MinimalPasswordLength' => 'PasswordPolicyChecks::checkMinimalPasswordLength',
5375 'MinimumPasswordLengthToLogin' => 'PasswordPolicyChecks::checkMinimumPasswordLengthToLogin',
5376 'PasswordCannotBeSubstringInUsername' =>
5377 'PasswordPolicyChecks::checkPasswordCannotBeSubstringInUsername',
5378 'PasswordCannotMatchDefaults' => 'PasswordPolicyChecks::checkPasswordCannotMatchDefaults',
5379 'MaximalPasswordLength' => 'PasswordPolicyChecks::checkMaximalPasswordLength',
5380 'PasswordNotInCommonList' => 'PasswordPolicyChecks::checkPasswordNotInCommonList',
5381 ],
5382];
5383
5404
5410 'preauth' => [
5411 MediaWiki\Auth\ThrottlePreAuthenticationProvider::class => [
5412 'class' => MediaWiki\Auth\ThrottlePreAuthenticationProvider::class,
5413 'sort' => 0,
5414 ],
5415 ],
5416 'primaryauth' => [
5417 // TemporaryPasswordPrimaryAuthenticationProvider should come before
5418 // any other PasswordAuthenticationRequest-based
5419 // PrimaryAuthenticationProvider (or at least any that might return
5420 // FAIL rather than ABSTAIN for a wrong password), or password reset
5421 // won't work right. Do not remove this (or change the key) or
5422 // auto-configuration of other such providers in extensions will
5423 // probably auto-insert themselves in the wrong place.
5424 MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::class => [
5425 'class' => MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::class,
5426 'services' => [
5427 'DBLoadBalancer',
5428 ],
5429 'args' => [ [
5430 // Fall through to LocalPasswordPrimaryAuthenticationProvider
5431 'authoritative' => false,
5432 ] ],
5433 'sort' => 0,
5434 ],
5435 MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::class => [
5436 'class' => MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::class,
5437 'services' => [
5438 'DBLoadBalancer',
5439 ],
5440 'args' => [ [
5441 // Last one should be authoritative, or else the user will get
5442 // a less-than-helpful error message (something like "supplied
5443 // authentication info not supported" rather than "wrong
5444 // password") if it too fails.
5445 'authoritative' => true,
5446 ] ],
5447 'sort' => 100,
5448 ],
5449 ],
5450 'secondaryauth' => [
5451 MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider::class => [
5452 'class' => MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider::class,
5453 'sort' => 0,
5454 ],
5455 MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::class => [
5456 'class' => MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::class,
5457 'sort' => 100,
5458 ],
5459 // Linking during login is experimental, enable at your own risk - T134952
5460 // MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class => [
5461 // 'class' => MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class,
5462 // 'sort' => 100,
5463 // ],
5464 MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::class => [
5465 'class' => MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::class,
5466 'services' => [
5467 'DBLoadBalancer',
5468 ],
5469 'sort' => 200,
5470 ],
5471 ],
5472];
5473
5482$wgRememberMe = 'choose'; // RememberMeAuthenticationRequest::CHOOSE_REMEMBER
5483
5523 'default' => 300,
5524];
5525
5542 'default' => true,
5543];
5544
5555 \MediaWiki\Auth\TemporaryPasswordAuthenticationRequest::class
5556];
5557
5568 \MediaWiki\Auth\PasswordAuthenticationRequest::class,
5569];
5570
5577
5590
5597
5607
5628 'A' => [
5629 'class' => MWOldPassword::class,
5630 ],
5631 'B' => [
5632 'class' => MWSaltedPassword::class,
5633 ],
5634 'pbkdf2-legacyA' => [
5635 'class' => LayeredParameterizedPassword::class,
5636 'types' => [
5637 'A',
5638 'pbkdf2',
5639 ],
5640 ],
5641 'pbkdf2-legacyB' => [
5642 'class' => LayeredParameterizedPassword::class,
5643 'types' => [
5644 'B',
5645 'pbkdf2',
5646 ],
5647 ],
5648 'bcrypt' => [
5649 'class' => BcryptPassword::class,
5650 'cost' => 9,
5651 ],
5652 'pbkdf2' => [
5653 'class' => Pbkdf2Password::class,
5654 'algo' => 'sha512',
5655 'cost' => '30000',
5656 'length' => '64',
5657 ],
5658 'argon2' => [
5659 'class' => Argon2Password::class,
5660
5661 // Algorithm used:
5662 // * 'argon2i' is optimized against side-channel attacks (PHP 7.2+)
5663 // * 'argon2id' is optimized against both side-channel and GPU cracking (PHP 7.3+)
5664 // * 'auto' to use best available algorithm. If you're using more than one server, be
5665 // careful when you're mixing PHP versions because newer PHP might generate hashes that
5666 // older versions might would not understand.
5667 'algo' => 'auto',
5668
5669 // The parameters below are the same as options accepted by password_hash().
5670 // Set them to override that function's defaults.
5671 //
5672 // 'memory_cost' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST,
5673 // 'time_cost' => PASSWORD_ARGON2_DEFAULT_TIME_COST,
5674 // 'threads' => PASSWORD_ARGON2_DEFAULT_THREADS,
5675 ],
5676];
5677
5685 'username' => true,
5686 'email' => true,
5687];
5688
5693
5705
5713
5719
5726 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
5727 'Conversion script', // Used for the old Wikipedia software upgrade
5728 'Maintenance script', // Maintenance scripts which perform editing, image import script
5729 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
5730 'ScriptImporter', // Default user name used by maintenance/importSiteScripts.php
5731 'Unknown user', // Used in WikiImporter & RevisionStore for revisions with no author and in User for invalid user id
5732 'msg:double-redirect-fixer', // Automatic double redirect fix
5733 'msg:usermessage-editor', // Default user for leaving user messages
5734 'msg:proxyblocker', // For $wgProxyList and Special:Blockme (removed in 1.22)
5735 'msg:sorbs', // For $wgEnableDnsBlacklist etc.
5736 'msg:spambot_username', // Used by cleanupSpam.php
5737 'msg:autochange-username', // Used by anon category RC entries (parser functions, Lua & purges)
5738];
5739
5747 'ccmeonemails' => 0,
5748 'date' => 'default',
5749 'diffonly' => 0,
5750 'disablemail' => 0,
5751 'editfont' => 'monospace',
5752 'editondblclick' => 0,
5753 'editsectiononrightclick' => 0,
5754 'email-allow-new-users' => 1,
5755 'enotifminoredits' => 0,
5756 'enotifrevealaddr' => 0,
5757 'enotifusertalkpages' => 1,
5758 'enotifwatchlistpages' => 1,
5759 'extendwatchlist' => 1,
5760 'fancysig' => 0,
5761 'forceeditsummary' => 0,
5762 'gender' => 'unknown',
5763 'hideminor' => 0,
5764 'hidepatrolled' => 0,
5765 'hidecategorization' => 1,
5766 'imagesize' => 2,
5767 'minordefault' => 0,
5768 'newpageshidepatrolled' => 0,
5769 'nickname' => '',
5770 'pst-cssjs' => 1,
5771 'norollbackdiff' => 0,
5772 'previewonfirst' => 0,
5773 'previewontop' => 1,
5774 'rcdays' => 7,
5775 'rcenhancedfilters-disable' => 0,
5776 'rclimit' => 50,
5777 'search-match-redirect' => true,
5778 'search-special-page' => 'Search',
5779 'searchlimit' => 20,
5780 'showhiddencats' => 0,
5781 'shownumberswatching' => 1,
5782 'showrollbackconfirmation' => 0,
5783 'skin' => false,
5784 'thumbsize' => 5,
5785 'underline' => 2,
5786 'uselivepreview' => 0,
5787 'usenewrc' => 1,
5788 'watchcreations' => 1,
5789 'watchdefault' => 1,
5790 'watchdeletion' => 0,
5791 'watchuploads' => 1,
5792 'watchlistdays' => 7.0,
5793 'watchlisthideanons' => 0,
5794 'watchlisthidebots' => 0,
5795 'watchlisthideliu' => 0,
5796 'watchlisthideminor' => 0,
5797 'watchlisthideown' => 0,
5798 'watchlisthidepatrolled' => 0,
5799 'watchlisthidecategorization' => 1,
5800 'watchlistreloadautomatically' => 0,
5801 'watchlistunwatchlinks' => 0,
5802 'watchmoves' => 0,
5803 'watchrollback' => 0,
5804 'wlenhancedfilters-disable' => 0,
5805 'wllimit' => 250,
5806 'useeditwarning' => 1,
5807 'prefershttps' => 1,
5808 'requireemail' => 0,
5809 'skin-responsive' => 1,
5810];
5811
5816
5823
5834
5842
5854
5864 MediaWiki\Session\CookieSessionProvider::class => [
5865 'class' => MediaWiki\Session\CookieSessionProvider::class,
5866 'args' => [ [
5867 'priority' => 30,
5868 'callUserSetCookiesHook' => true,
5869 ] ],
5870 ],
5871 MediaWiki\Session\BotPasswordSessionProvider::class => [
5872 'class' => MediaWiki\Session\BotPasswordSessionProvider::class,
5873 'args' => [ [
5874 'priority' => 75,
5875 ] ],
5876 ],
5877];
5878
5887
5888// endregion -- end user accounts
5889
5890/***************************************************************************/
5891// region User rights, access control and monitoring
5898
5907
5923 'IPv4' => 16, # Blocks larger than a /16 (64k addresses) will not be allowed
5924 'IPv6' => 19,
5925];
5926
5935
5943
5965
5993
5999
6005
6031
6033// Implicit group for all visitors
6034$wgGroupPermissions['*']['createaccount'] = true;
6035$wgGroupPermissions['*']['read'] = true;
6036$wgGroupPermissions['*']['edit'] = true;
6037$wgGroupPermissions['*']['createpage'] = true;
6038$wgGroupPermissions['*']['createtalk'] = true;
6039$wgGroupPermissions['*']['writeapi'] = true;
6040$wgGroupPermissions['*']['viewmywatchlist'] = true;
6041$wgGroupPermissions['*']['editmywatchlist'] = true;
6042$wgGroupPermissions['*']['viewmyprivateinfo'] = true;
6043$wgGroupPermissions['*']['editmyprivateinfo'] = true;
6044$wgGroupPermissions['*']['editmyoptions'] = true;
6045# $wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled
6046
6047// Implicit group for all logged-in accounts
6048$wgGroupPermissions['user']['move'] = true;
6049$wgGroupPermissions['user']['move-subpages'] = true;
6050$wgGroupPermissions['user']['move-rootuserpages'] = true; // can move root userpages
6051$wgGroupPermissions['user']['move-categorypages'] = true;
6052$wgGroupPermissions['user']['movefile'] = true;
6053$wgGroupPermissions['user']['read'] = true;
6054$wgGroupPermissions['user']['edit'] = true;
6055$wgGroupPermissions['user']['createpage'] = true;
6056$wgGroupPermissions['user']['createtalk'] = true;
6057$wgGroupPermissions['user']['writeapi'] = true;
6058$wgGroupPermissions['user']['upload'] = true;
6059$wgGroupPermissions['user']['reupload'] = true;
6060$wgGroupPermissions['user']['reupload-shared'] = true;
6061$wgGroupPermissions['user']['minoredit'] = true;
6062$wgGroupPermissions['user']['editmyusercss'] = true;
6063$wgGroupPermissions['user']['editmyuserjson'] = true;
6064$wgGroupPermissions['user']['editmyuserjs'] = true;
6065$wgGroupPermissions['user']['editmyuserjsredirect'] = true;
6066$wgGroupPermissions['user']['purge'] = true;
6067$wgGroupPermissions['user']['sendemail'] = true;
6068$wgGroupPermissions['user']['applychangetags'] = true;
6069$wgGroupPermissions['user']['changetags'] = true;
6070$wgGroupPermissions['user']['editcontentmodel'] = true;
6071
6072// Implicit group for accounts that pass $wgAutoConfirmAge and $wgAutoConfirmCount
6073$wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
6074$wgGroupPermissions['autoconfirmed']['editsemiprotected'] = true;
6075
6076// Users with bot privilege can have their edits hidden
6077// from various log pages by default
6078$wgGroupPermissions['bot']['bot'] = true;
6079$wgGroupPermissions['bot']['autoconfirmed'] = true;
6080$wgGroupPermissions['bot']['editsemiprotected'] = true;
6081$wgGroupPermissions['bot']['nominornewtalk'] = true;
6082$wgGroupPermissions['bot']['autopatrol'] = true;
6083$wgGroupPermissions['bot']['suppressredirect'] = true;
6084$wgGroupPermissions['bot']['apihighlimits'] = true;
6085$wgGroupPermissions['bot']['writeapi'] = true;
6086
6087// Most extra permission abilities go to this group
6088$wgGroupPermissions['sysop']['block'] = true;
6089$wgGroupPermissions['sysop']['createaccount'] = true;
6090$wgGroupPermissions['sysop']['delete'] = true;
6091// can be separately configured for pages with > $wgDeleteRevisionsLimit revs
6092$wgGroupPermissions['sysop']['bigdelete'] = true;
6093// can view deleted history entries, but not see or restore the text
6094$wgGroupPermissions['sysop']['deletedhistory'] = true;
6095// can view deleted revision text
6096$wgGroupPermissions['sysop']['deletedtext'] = true;
6097$wgGroupPermissions['sysop']['undelete'] = true;
6098$wgGroupPermissions['sysop']['editinterface'] = true;
6099$wgGroupPermissions['sysop']['editsitejson'] = true;
6100$wgGroupPermissions['sysop']['edituserjson'] = true;
6101$wgGroupPermissions['sysop']['import'] = true;
6102$wgGroupPermissions['sysop']['importupload'] = true;
6103$wgGroupPermissions['sysop']['move'] = true;
6104$wgGroupPermissions['sysop']['move-subpages'] = true;
6105$wgGroupPermissions['sysop']['move-rootuserpages'] = true;
6106$wgGroupPermissions['sysop']['move-categorypages'] = true;
6107$wgGroupPermissions['sysop']['patrol'] = true;
6108$wgGroupPermissions['sysop']['autopatrol'] = true;
6109$wgGroupPermissions['sysop']['protect'] = true;
6110$wgGroupPermissions['sysop']['editprotected'] = true;
6111$wgGroupPermissions['sysop']['rollback'] = true;
6112$wgGroupPermissions['sysop']['upload'] = true;
6113$wgGroupPermissions['sysop']['reupload'] = true;
6114$wgGroupPermissions['sysop']['reupload-shared'] = true;
6115$wgGroupPermissions['sysop']['unwatchedpages'] = true;
6116$wgGroupPermissions['sysop']['autoconfirmed'] = true;
6117$wgGroupPermissions['sysop']['editsemiprotected'] = true;
6118$wgGroupPermissions['sysop']['ipblock-exempt'] = true;
6119$wgGroupPermissions['sysop']['blockemail'] = true;
6120$wgGroupPermissions['sysop']['markbotedits'] = true;
6121$wgGroupPermissions['sysop']['apihighlimits'] = true;
6122$wgGroupPermissions['sysop']['browsearchive'] = true;
6123$wgGroupPermissions['sysop']['noratelimit'] = true;
6124$wgGroupPermissions['sysop']['movefile'] = true;
6125$wgGroupPermissions['sysop']['unblockself'] = true;
6126$wgGroupPermissions['sysop']['suppressredirect'] = true;
6127# $wgGroupPermissions['sysop']['pagelang'] = true;
6128# $wgGroupPermissions['sysop']['upload_by_url'] = true;
6129$wgGroupPermissions['sysop']['mergehistory'] = true;
6130$wgGroupPermissions['sysop']['managechangetags'] = true;
6131$wgGroupPermissions['sysop']['deletechangetags'] = true;
6132
6133$wgGroupPermissions['interface-admin']['editinterface'] = true;
6134$wgGroupPermissions['interface-admin']['editsitecss'] = true;
6135$wgGroupPermissions['interface-admin']['editsitejson'] = true;
6136$wgGroupPermissions['interface-admin']['editsitejs'] = true;
6137$wgGroupPermissions['interface-admin']['editusercss'] = true;
6138$wgGroupPermissions['interface-admin']['edituserjson'] = true;
6139$wgGroupPermissions['interface-admin']['edituserjs'] = true;
6140
6141// Permission to change users' group assignments
6142$wgGroupPermissions['bureaucrat']['userrights'] = true;
6143$wgGroupPermissions['bureaucrat']['noratelimit'] = true;
6144// Permission to change users' groups assignments across wikis
6145# $wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
6146// Permission to export pages including linked pages regardless of $wgExportMaxLinkDepth
6147# $wgGroupPermissions['bureaucrat']['override-export-depth'] = true;
6148
6149# $wgGroupPermissions['sysop']['deletelogentry'] = true;
6150# $wgGroupPermissions['sysop']['deleterevision'] = true;
6151// To hide usernames from users and Sysops
6152$wgGroupPermissions['suppress']['hideuser'] = true;
6153// To hide revisions/log items from users and Sysops
6154$wgGroupPermissions['suppress']['suppressrevision'] = true;
6155// To view revisions/log items hidden from users and Sysops
6156$wgGroupPermissions['suppress']['viewsuppressed'] = true;
6157// For private suppression log access
6158$wgGroupPermissions['suppress']['suppressionlog'] = true;
6159// Basic rights for revision delete
6160$wgGroupPermissions['suppress']['deleterevision'] = true;
6161$wgGroupPermissions['suppress']['deletelogentry'] = true;
6162
6169# $wgGroupPermissions['developer']['siteadmin'] = true;
6170
6183
6203
6207$wgImplicitGroups = [ '*', 'user', 'autoconfirmed' ];
6208
6231
6236
6244$wgRestrictionTypes = [ 'create', 'edit', 'move', 'upload' ];
6245
6257$wgRestrictionLevels = [ '', 'autoconfirmed', 'sysop' ];
6258
6269
6283
6292
6303
6325
6336
6395 'autoconfirmed' => [ '&',
6396 [ APCOND_EDITCOUNT, null ],
6397 [ APCOND_AGE, null ],
6398 ],
6399];
6400
6420 'onEdit' => [],
6421];
6422
6428
6452
6457
6463
6469
6475
6484
6507 'count' => 0,
6508 'seconds' => 86400,
6509] ];
6510
6523
6528
6535
6559$wgDnsBlacklistUrls = [ 'http.dnsbl.sorbs.net.' ];
6560
6570
6576
6585
6592
6632 // Page edits
6633 'edit' => [
6634 'ip' => [ 8, 60 ],
6635 'newbie' => [ 8, 60 ],
6636 'user' => [ 90, 60 ],
6637 ],
6638 // Page moves
6639 'move' => [
6640 'newbie' => [ 2, 120 ],
6641 'user' => [ 8, 60 ],
6642 ],
6643 // File uploads
6644 'upload' => [
6645 'ip' => [ 8, 60 ],
6646 'newbie' => [ 8, 60 ],
6647 ],
6648 // Page rollbacks
6649 'rollback' => [
6650 'user' => [ 10, 60 ],
6651 'newbie' => [ 5, 120 ]
6652 ],
6653 // Triggering password resets emails
6654 'mailpassword' => [
6655 'ip' => [ 5, 3600 ],
6656 ],
6657 // Emailing other users using MediaWiki
6658 'emailuser' => [
6659 'ip' => [ 5, 86400 ],
6660 'newbie' => [ 5, 86400 ],
6661 'user' => [ 20, 86400 ],
6662 ],
6663 'changeemail' => [
6664 'ip-all' => [ 10, 3600 ],
6665 'user' => [ 4, 86400 ]
6666 ],
6667 // since 1.33 - rate limit email confirmations
6668 'confirmemail' => [
6669 'ip-all' => [ 10, 3600 ],
6670 'user' => [ 4, 86400 ]
6671 ],
6672 // Purging pages
6673 'purge' => [
6674 'ip' => [ 30, 60 ],
6675 'user' => [ 30, 60 ],
6676 ],
6677 // Purges of link tables
6678 'linkpurge' => [
6679 'ip' => [ 30, 60 ],
6680 'user' => [ 30, 60 ],
6681 ],
6682 // Files rendered via thumb.php or thumb_handler.php
6683 'renderfile' => [
6684 'ip' => [ 700, 30 ],
6685 'user' => [ 700, 30 ],
6686 ],
6687 // Same as above but for non-standard thumbnails
6688 'renderfile-nonstandard' => [
6689 'ip' => [ 70, 30 ],
6690 'user' => [ 70, 30 ],
6691 ],
6692 // Stashing edits into cache before save
6693 'stashedit' => [
6694 'ip' => [ 30, 60 ],
6695 'newbie' => [ 30, 60 ],
6696 ],
6697 // Adding or removing change tags
6698 'changetag' => [
6699 'ip' => [ 8, 60 ],
6700 'newbie' => [ 8, 60 ],
6701 ],
6702 // Changing the content model of a page
6703 'editcontentmodel' => [
6704 'newbie' => [ 2, 120 ],
6705 'user' => [ 8, 60 ],
6706 ],
6707];
6708
6714
6721
6727
6741 // Short term limit
6742 [ 'count' => 5, 'seconds' => 300 ],
6743 // Long term limit. We need to balance the risk
6744 // of somebody using this as a DoS attack to lock someone
6745 // out of their account, and someone doing a brute force attack.
6746 [ 'count' => 150, 'seconds' => 60 * 60 * 48 ],
6747];
6748
6760
6761// @TODO: clean up grants
6762// @TODO: auto-include read/editsemiprotected rights?
6763
6764$wgGrantPermissions['basic']['autocreateaccount'] = true;
6765$wgGrantPermissions['basic']['autoconfirmed'] = true;
6766$wgGrantPermissions['basic']['autopatrol'] = true;
6767$wgGrantPermissions['basic']['editsemiprotected'] = true;
6768$wgGrantPermissions['basic']['ipblock-exempt'] = true;
6769$wgGrantPermissions['basic']['nominornewtalk'] = true;
6770$wgGrantPermissions['basic']['patrolmarks'] = true;
6771$wgGrantPermissions['basic']['purge'] = true;
6772$wgGrantPermissions['basic']['read'] = true;
6773$wgGrantPermissions['basic']['writeapi'] = true;
6774$wgGrantPermissions['basic']['unwatchedpages'] = true;
6775
6776$wgGrantPermissions['highvolume']['bot'] = true;
6777$wgGrantPermissions['highvolume']['apihighlimits'] = true;
6778$wgGrantPermissions['highvolume']['noratelimit'] = true;
6779$wgGrantPermissions['highvolume']['markbotedits'] = true;
6780
6781$wgGrantPermissions['import']['import'] = true;
6782$wgGrantPermissions['import']['importupload'] = true;
6783
6784$wgGrantPermissions['editpage']['edit'] = true;
6785$wgGrantPermissions['editpage']['minoredit'] = true;
6786$wgGrantPermissions['editpage']['applychangetags'] = true;
6787$wgGrantPermissions['editpage']['changetags'] = true;
6788$wgGrantPermissions['editpage']['editcontentmodel'] = true;
6789
6790$wgGrantPermissions['editprotected'] = $wgGrantPermissions['editpage'];
6791$wgGrantPermissions['editprotected']['editprotected'] = true;
6792
6793// FIXME: Rename editmycssjs to editmyconfig
6794$wgGrantPermissions['editmycssjs'] = $wgGrantPermissions['editpage'];
6795$wgGrantPermissions['editmycssjs']['editmyusercss'] = true;
6796$wgGrantPermissions['editmycssjs']['editmyuserjson'] = true;
6797$wgGrantPermissions['editmycssjs']['editmyuserjs'] = true;
6798
6799$wgGrantPermissions['editmyoptions']['editmyoptions'] = true;
6800$wgGrantPermissions['editmyoptions']['editmyuserjson'] = true;
6801
6802$wgGrantPermissions['editinterface'] = $wgGrantPermissions['editpage'];
6803$wgGrantPermissions['editinterface']['editinterface'] = true;
6804$wgGrantPermissions['editinterface']['edituserjson'] = true;
6805$wgGrantPermissions['editinterface']['editsitejson'] = true;
6806
6807$wgGrantPermissions['editsiteconfig'] = $wgGrantPermissions['editinterface'];
6808$wgGrantPermissions['editsiteconfig']['editusercss'] = true;
6809$wgGrantPermissions['editsiteconfig']['edituserjs'] = true;
6810$wgGrantPermissions['editsiteconfig']['editsitecss'] = true;
6811$wgGrantPermissions['editsiteconfig']['editsitejs'] = true;
6812
6813$wgGrantPermissions['createeditmovepage'] = $wgGrantPermissions['editpage'];
6814$wgGrantPermissions['createeditmovepage']['createpage'] = true;
6815$wgGrantPermissions['createeditmovepage']['createtalk'] = true;
6816$wgGrantPermissions['createeditmovepage']['delete-redirect'] = true;
6817$wgGrantPermissions['createeditmovepage']['move'] = true;
6818$wgGrantPermissions['createeditmovepage']['move-rootuserpages'] = true;
6819$wgGrantPermissions['createeditmovepage']['move-subpages'] = true;
6820$wgGrantPermissions['createeditmovepage']['move-categorypages'] = true;
6821$wgGrantPermissions['createeditmovepage']['suppressredirect'] = true;
6822
6823$wgGrantPermissions['uploadfile']['upload'] = true;
6824$wgGrantPermissions['uploadfile']['reupload-own'] = true;
6825
6826$wgGrantPermissions['uploadeditmovefile'] = $wgGrantPermissions['uploadfile'];
6827$wgGrantPermissions['uploadeditmovefile']['reupload'] = true;
6828$wgGrantPermissions['uploadeditmovefile']['reupload-shared'] = true;
6829$wgGrantPermissions['uploadeditmovefile']['upload_by_url'] = true;
6830$wgGrantPermissions['uploadeditmovefile']['movefile'] = true;
6831$wgGrantPermissions['uploadeditmovefile']['suppressredirect'] = true;
6832
6833$wgGrantPermissions['patrol']['patrol'] = true;
6834
6835$wgGrantPermissions['rollback']['rollback'] = true;
6836
6837$wgGrantPermissions['blockusers']['block'] = true;
6838$wgGrantPermissions['blockusers']['blockemail'] = true;
6839
6840$wgGrantPermissions['viewdeleted']['browsearchive'] = true;
6841$wgGrantPermissions['viewdeleted']['deletedhistory'] = true;
6842$wgGrantPermissions['viewdeleted']['deletedtext'] = true;
6843
6844$wgGrantPermissions['viewrestrictedlogs']['suppressionlog'] = true;
6845
6847 $wgGrantPermissions['viewdeleted'];
6848$wgGrantPermissions['delete']['delete'] = true;
6849$wgGrantPermissions['delete']['bigdelete'] = true;
6850$wgGrantPermissions['delete']['deletelogentry'] = true;
6851$wgGrantPermissions['delete']['deleterevision'] = true;
6852$wgGrantPermissions['delete']['undelete'] = true;
6853
6854$wgGrantPermissions['oversight']['suppressrevision'] = true;
6855$wgGrantPermissions['oversight']['viewsuppressed'] = true;
6856
6857$wgGrantPermissions['protect'] = $wgGrantPermissions['editprotected'];
6858$wgGrantPermissions['protect']['protect'] = true;
6859
6860$wgGrantPermissions['viewmywatchlist']['viewmywatchlist'] = true;
6861
6862$wgGrantPermissions['editmywatchlist']['editmywatchlist'] = true;
6863
6864$wgGrantPermissions['sendemail']['sendemail'] = true;
6865
6866$wgGrantPermissions['createaccount']['createaccount'] = true;
6867
6868$wgGrantPermissions['privateinfo']['viewmyprivateinfo'] = true;
6869
6870$wgGrantPermissions['mergehistory']['mergehistory'] = true;
6871
6877 // Hidden grants are implicitly present
6878 'basic' => 'hidden',
6879
6880 'editpage' => 'page-interaction',
6881 'createeditmovepage' => 'page-interaction',
6882 'editprotected' => 'page-interaction',
6883 'patrol' => 'page-interaction',
6884
6885 'uploadfile' => 'file-interaction',
6886 'uploadeditmovefile' => 'file-interaction',
6887
6888 'sendemail' => 'email',
6889
6890 'viewmywatchlist' => 'watchlist-interaction',
6891 'editviewmywatchlist' => 'watchlist-interaction',
6892
6893 'editmycssjs' => 'customization',
6894 'editmyoptions' => 'customization',
6895
6896 'editinterface' => 'administration',
6897 'editsiteconfig' => 'administration',
6898 'rollback' => 'administration',
6899 'blockusers' => 'administration',
6900 'delete' => 'administration',
6901 'viewdeleted' => 'administration',
6902 'viewrestrictedlogs' => 'administration',
6903 'protect' => 'administration',
6904 'oversight' => 'administration',
6905 'createaccount' => 'administration',
6906 'mergehistory' => 'administration',
6907 'import' => 'administration',
6908
6909 'highvolume' => 'high-volume',
6910
6911 'privateinfo' => 'private-information',
6912];
6913
6919
6926
6936
6937// endregion -- end of user rights settings
6938
6939/***************************************************************************/
6940// region Security
6943// This section is for miscellaneous security settings.
6944// For password restrictions and encryption settings, see the section
6945// "User accounts, authentication".
6946
6951
6958
6965
6973
6978
6983
6989
7010
7022
7046
7054
7064 'https://3hub.co' => true,
7065 'https://morepro.info' => true,
7066 'https://p.ato.mx' => true,
7067 'https://s.ato.mx' => true,
7068 'https://adserver.adtech.de' => true,
7069 'https://ums.adtechus.com' => true,
7070 'https://cas.criteo.com' => true,
7071 'https://cat.nl.eu.criteo.com' => true,
7072 'https://atpixel.alephd.com' => true,
7073 'https://rtb.metrigo.com' => true,
7074 'https://d5p.de17a.com' => true,
7075 'https://ad.lkqd.net/vpaid/vpaid.js' => true,
7076 'https://ad.lkqd.net/vpaid/vpaid.js?fusion=1.0' => true,
7077 'https://t.lkqd.net/t' => true,
7078 'chrome-extension' => true,
7079];
7080
7090
7106
7114
7123
7133
7141
7142// endregion -- end of security
7143
7144/***************************************************************************/
7145// region Cookie settings
7152
7160
7166
7172
7184
7192
7199
7206
7218
7228
7233
7238
7247
7256
7257// endregion -- end of cookie settings
7258
7259/***************************************************************************/
7260// region Profiling, testing and debugging
7262// See $wgProfiler for how to enable profiling.
7263
7270
7275
7282
7289
7299
7308
7315 // HTTP GET/HEAD requests.
7316 // Primary queries should not happen on GET requests
7317 'GET' => [
7318 'masterConns' => 0,
7319 'writes' => 0,
7320 'readQueryTime' => 5,
7321 'readQueryRows' => 10000
7322 ],
7323 // HTTP POST requests.
7324 // Primary reads and writes will happen for a subset of these.
7325 'POST' => [
7326 'readQueryTime' => 5,
7327 'writeQueryTime' => 1,
7328 'readQueryRows' => 100000,
7329 'maxAffected' => 1000
7330 ],
7331 'POST-nonwrite' => [
7332 'writes' => 0,
7333 'readQueryTime' => 5,
7334 'readQueryRows' => 10000
7335 ],
7336 // Deferred updates that run after HTTP response is sent for GET requests
7337 'PostSend-GET' => [
7338 'readQueryTime' => 5,
7339 'writeQueryTime' => 1,
7340 'readQueryRows' => 10000,
7341 'maxAffected' => 1000,
7342 // Log primary queries under the post-send entry point as they are discouraged
7343 'masterConns' => 0,
7344 'writes' => 0,
7345 ],
7346 // Deferred updates that run after HTTP response is sent for POST requests
7347 'PostSend-POST' => [
7348 'readQueryTime' => 5,
7349 'writeQueryTime' => 1,
7350 'readQueryRows' => 100000,
7351 'maxAffected' => 1000
7352 ],
7353 // Background job runner
7354 'JobRunner' => [
7355 'readQueryTime' => 30,
7356 'writeQueryTime' => 5,
7357 'readQueryRows' => 100000,
7358 'maxAffected' => 500 // ballpark of $wgUpdateRowsPerQuery
7359 ],
7360 // Command-line scripts
7361 'Maintenance' => [
7362 'writeQueryTime' => 5,
7363 'maxAffected' => 1000
7364 ]
7365];
7366
7398
7421 'class' => \MediaWiki\Logger\LegacySpi::class,
7422];
7423
7430
7435
7443
7448
7454
7459
7466
7472
7479
7547
7559
7568
7577
7589
7602
7613$wgMetricsPrefix = 'mediawiki';
7614
7621
7636
7641
7647
7656
7657// endregion -- end of profiling, testing and debugging
7658
7659/***************************************************************************/
7660// region Search
7667
7673
7678$wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]';
7679
7691
7701 'application/x-suggestions+json' => false,
7702 'application/x-suggestions+xml' => false,
7703];
7704
7712
7718
7723
7728
7734
7745 NS_MAIN => true,
7746];
7747
7753
7770
7777
7793
7800
7811
7822
7831
7832// endregion -- end of search settings
7833
7834/***************************************************************************/
7835// region Edit user interface
7842$wgDiff3 = '/usr/bin/diff3';
7843
7847$wgDiff = '/usr/bin/diff';
7848
7855 NS_CATEGORY => true
7856];
7857
7864
7871
7872// endregion -- end edit UI
7873
7874/***************************************************************************/
7875// region Maintenance
7877// See also $wgSiteNotice
7878
7883
7893
7900
7909
7920
7924$wgGitBin = '/usr/bin/git';
7925
7940 'https://(?:[a-z0-9_]+@)?gerrit.wikimedia.org/r/(?:p/)?(.*)' =>
7941 'https://gerrit.wikimedia.org/g/%R/+/%H',
7942 'ssh://(?:[a-z0-9_]+@)?gerrit.wikimedia.org:29418/(.*)' =>
7943 'https://gerrit.wikimedia.org/g/%R/+/%H',
7944];
7945
7946// endregion -- End of maintenance
7947
7948/***************************************************************************/
7949// region Recent changes, new pages, watchlist and history
7957$wgRCMaxAge = 90 * 24 * 3600;
7958
7964$wgWatchersMaxAge = 180 * 24 * 3600;
7965
7973
7982
7987$wgRCLinkLimits = [ 50, 100, 250, 500 ];
7988
7995$wgRCLinkDays = [ 1, 3, 7, 14, 30 ];
7996
8040
8051 'redis' => RedisPubSubFeedEngine::class,
8052 'udp' => UDPRCFeedEngine::class,
8053];
8054
8067
8077
8084
8093
8104
8108$wgFeed = true;
8109
8115
8125
8131
8145
8152 'rss' => RSSFeed::class,
8153 'atom' => AtomFeed::class,
8154];
8155
8161
8166
8171
8178
8184
8190
8196
8215 'mw-contentmodelchange' => true,
8216 'mw-new-redirect' => true,
8217 'mw-removed-redirect' => true,
8218 'mw-changed-redirect-target' => true,
8219 'mw-blank' => true,
8220 'mw-replace' => true,
8221 'mw-rollback' => true,
8222 'mw-undo' => true,
8223 'mw-manual-revert' => true,
8224 'mw-reverted' => true,
8225 'mw-server-side-upload' => true,
8226];
8227
8236
8262 'newpage' => [
8263 'letter' => 'newpageletter',
8264 'title' => 'recentchanges-label-newpage',
8265 'legend' => 'recentchanges-legend-newpage',
8266 'grouping' => 'any',
8267 ],
8268 'minor' => [
8269 'letter' => 'minoreditletter',
8270 'title' => 'recentchanges-label-minor',
8271 'legend' => 'recentchanges-legend-minor',
8272 'class' => 'minoredit',
8273 'grouping' => 'all',
8274 ],
8275 'bot' => [
8276 'letter' => 'boteditletter',
8277 'title' => 'recentchanges-label-bot',
8278 'legend' => 'recentchanges-legend-bot',
8279 'class' => 'botedit',
8280 'grouping' => 'all',
8281 ],
8282 'unpatrolled' => [
8283 'letter' => 'unpatrolledletter',
8284 'title' => 'recentchanges-label-unpatrolled',
8285 'legend' => 'recentchanges-legend-unpatrolled',
8286 'grouping' => 'any',
8287 ],
8288];
8289
8297
8310
8326
8327// endregion -- end RC/watchlist
8328
8329/***************************************************************************/
8330// region Copyright and credits settings
8341
8348
8356
8361
8366
8375
8381
8382// endregion -- end of copyright and credits settings
8383
8384/***************************************************************************/
8385// region Import / Export
8411
8420
8427
8434
8439
8452
8457
8462
8470
8476
8477// endregion -- end of import/export
8478
8479/***************************************************************************/
8480// region Wiki Farm
8492
8502
8519
8520// endregion -- End Wiki Farm
8521
8522/***************************************************************************/
8523// region Extensions
8531
8559
8586
8593
8611
8616
8642
8650
8655
8664
8724
8761
8776
8785 'deletePage' => DeletePageJob::class,
8786 'refreshLinks' => RefreshLinksJob::class,
8787 'deleteLinks' => DeleteLinksJob::class,
8788 'htmlCacheUpdate' => HTMLCacheUpdateJob::class,
8789 'sendMail' => EmaillingJob::class,
8790 'enotifNotify' => EnotifNotifyJob::class,
8791 'fixDoubleRedirect' => DoubleRedirectJob::class,
8792 'AssembleUploadChunks' => AssembleUploadChunksJob::class,
8793 'PublishStashedFile' => PublishStashedFileJob::class,
8794 'ThumbnailRender' => ThumbnailRenderJob::class,
8795 'recentChangesUpdate' => RecentChangesUpdateJob::class,
8796 'refreshLinksPrioritized' => RefreshLinksJob::class,
8797 'refreshLinksDynamic' => RefreshLinksJob::class,
8798 'activityUpdateJob' => ActivityUpdateJob::class,
8799 'categoryMembershipChange' => CategoryMembershipChangeJob::class,
8800 'clearUserWatchlist' => ClearUserWatchlistJob::class,
8801 'watchlistExpiry' => WatchlistExpiryJob::class,
8802 'cdnPurge' => CdnPurgeJob::class,
8803 'userGroupExpiry' => UserGroupExpiryJob::class,
8804 'clearWatchlistNotifications' => ClearWatchlistNotificationsJob::class,
8805 'userOptionsUpdate' => UserOptionsUpdateJob::class,
8806 'revertedTagUpdate' => RevertedTagUpdateJob::class,
8807 'enqueue' => EnqueueJob::class, // local queue for multi-DC setups
8808 'null' => NullJob::class,
8809 'userEditCountInit' => UserEditCountInitJob::class,
8810];
8811
8823$wgJobTypesExcludedFromDefaultQueue = [ 'AssembleUploadChunks', 'PublishStashedFile' ];
8824
8835
8850
8858 'default' => [ 'class' => JobQueueDB::class, 'order' => 'random', 'claimTTL' => 3600 ],
8859];
8860
8873
8879 'Statistics' => [ SiteStatsUpdate::class, 'cacheUpdate' ]
8880];
8881
8890 'hiddencat' => 'categorylinks',
8891];
8892
8893// endregion -- End extensions
8894
8895/***************************************************************************/
8896// region Categories
8904
8909
8936
8947
8964
8965// endregion -- End categories
8966
8967/***************************************************************************/
8968// region Logging
8981 '',
8982 'block',
8983 'protect',
8984 'rights',
8985 'delete',
8986 'upload',
8987 'move',
8988 'import',
8989 'patrol',
8990 'merge',
8991 'suppress',
8992 'tag',
8993 'managetags',
8994 'contentmodel',
8995];
8996
9005 'suppress' => 'suppressionlog'
9006];
9007
9028 'patrol' => true,
9029 'tag' => true,
9030 'newusers' => false,
9031];
9032
9043 '' => 'all-logs-page',
9044 'block' => 'blocklogpage',
9045 'protect' => 'protectlogpage',
9046 'rights' => 'rightslog',
9047 'delete' => 'dellogpage',
9048 'upload' => 'uploadlogpage',
9049 'move' => 'movelogpage',
9050 'import' => 'importlogpage',
9051 'patrol' => 'patrol-log-page',
9052 'merge' => 'mergelog',
9053 'suppress' => 'suppressionlog',
9054];
9055
9066 '' => 'alllogstext',
9067 'block' => 'blocklogtext',
9068 'delete' => 'dellogpagetext',
9069 'import' => 'importlogpagetext',
9070 'merge' => 'mergelogpagetext',
9071 'move' => 'movelogpagetext',
9072 'patrol' => 'patrol-log-header',
9073 'protect' => 'protectlogtext',
9074 'rights' => 'rightslogtext',
9075 'suppress' => 'suppressionlogtext',
9076 'upload' => 'uploadlogpagetext',
9077];
9078
9086
9094 'block/block' => BlockLogFormatter::class,
9095 'block/reblock' => BlockLogFormatter::class,
9096 'block/unblock' => BlockLogFormatter::class,
9097 'contentmodel/change' => ContentModelLogFormatter::class,
9098 'contentmodel/new' => ContentModelLogFormatter::class,
9099 'delete/delete' => DeleteLogFormatter::class,
9100 'delete/delete_redir' => DeleteLogFormatter::class,
9101 'delete/delete_redir2' => DeleteLogFormatter::class,
9102 'delete/event' => DeleteLogFormatter::class,
9103 'delete/restore' => DeleteLogFormatter::class,
9104 'delete/revision' => DeleteLogFormatter::class,
9105 'import/interwiki' => ImportLogFormatter::class,
9106 'import/upload' => ImportLogFormatter::class,
9107 'managetags/activate' => LogFormatter::class,
9108 'managetags/create' => LogFormatter::class,
9109 'managetags/deactivate' => LogFormatter::class,
9110 'managetags/delete' => LogFormatter::class,
9111 'merge/merge' => MergeLogFormatter::class,
9112 'move/move' => MoveLogFormatter::class,
9113 'move/move_redir' => MoveLogFormatter::class,
9114 'patrol/patrol' => PatrolLogFormatter::class,
9115 'patrol/autopatrol' => PatrolLogFormatter::class,
9116 'protect/modify' => ProtectLogFormatter::class,
9117 'protect/move_prot' => ProtectLogFormatter::class,
9118 'protect/protect' => ProtectLogFormatter::class,
9119 'protect/unprotect' => ProtectLogFormatter::class,
9120 'rights/autopromote' => RightsLogFormatter::class,
9121 'rights/rights' => RightsLogFormatter::class,
9122 'suppress/block' => BlockLogFormatter::class,
9123 'suppress/delete' => DeleteLogFormatter::class,
9124 'suppress/event' => DeleteLogFormatter::class,
9125 'suppress/reblock' => BlockLogFormatter::class,
9126 'suppress/revision' => DeleteLogFormatter::class,
9127 'tag/update' => TagLogFormatter::class,
9128 'upload/overwrite' => UploadLogFormatter::class,
9129 'upload/revert' => UploadLogFormatter::class,
9130 'upload/upload' => UploadLogFormatter::class,
9131];
9132
9142 'block' => [
9143 'block' => [ 'block' ],
9144 'reblock' => [ 'reblock' ],
9145 'unblock' => [ 'unblock' ],
9146 ],
9147 'contentmodel' => [
9148 'change' => [ 'change' ],
9149 'new' => [ 'new' ],
9150 ],
9151 'delete' => [
9152 'delete' => [ 'delete' ],
9153 'delete_redir' => [ 'delete_redir', 'delete_redir2' ],
9154 'restore' => [ 'restore' ],
9155 'event' => [ 'event' ],
9156 'revision' => [ 'revision' ],
9157 ],
9158 'import' => [
9159 'interwiki' => [ 'interwiki' ],
9160 'upload' => [ 'upload' ],
9161 ],
9162 'managetags' => [
9163 'create' => [ 'create' ],
9164 'delete' => [ 'delete' ],
9165 'activate' => [ 'activate' ],
9166 'deactivate' => [ 'deactivate' ],
9167 ],
9168 'move' => [
9169 'move' => [ 'move' ],
9170 'move_redir' => [ 'move_redir' ],
9171 ],
9172 'newusers' => [
9173 'create' => [ 'create', 'newusers' ],
9174 'create2' => [ 'create2' ],
9175 'autocreate' => [ 'autocreate' ],
9176 'byemail' => [ 'byemail' ],
9177 ],
9178 'protect' => [
9179 'protect' => [ 'protect' ],
9180 'modify' => [ 'modify' ],
9181 'unprotect' => [ 'unprotect' ],
9182 'move_prot' => [ 'move_prot' ],
9183 ],
9184 'rights' => [
9185 'rights' => [ 'rights' ],
9186 'autopromote' => [ 'autopromote' ],
9187 ],
9188 'suppress' => [
9189 'event' => [ 'event' ],
9190 'revision' => [ 'revision' ],
9191 'delete' => [ 'delete' ],
9192 'block' => [ 'block' ],
9193 'reblock' => [ 'reblock' ],
9194 ],
9195 'upload' => [
9196 'upload' => [ 'upload' ],
9197 'overwrite' => [ 'overwrite' ],
9198 'revert' => [ 'revert' ],
9199 ],
9200];
9201
9206
9212
9213// endregion -- end logging
9214
9215/***************************************************************************/
9216// region Special pages (general and miscellaneous)
9223
9230
9236
9242
9251 'IPv4' => 16,
9252 'IPv6' => 32,
9253];
9254
9255// endregion -- end special pages
9256
9257/***************************************************************************/
9258// region Actions
9267
9268// endregion -- end actions
9269
9270/***************************************************************************/
9271// region Robot (search engine crawler) policy
9273// See also $wgNoFollowLinks.
9274
9280$wgDefaultRobotPolicy = 'index,follow';
9281
9297
9325
9337
9338// endregion End robot policy
9339
9340/***************************************************************************/
9341// region Action API and REST API
9359
9397
9406
9415
9424
9433
9439
9445
9451
9458
9464
9469
9475 'MIMEsearch', // aiprop=mime
9476 'LinkSearch', // list=exturlusage
9477];
9478
9485
9490
9512
9519
9524 /* simple headers (see spec) */
9525 'Accept',
9526 'Accept-Language',
9527 'Content-Language',
9528 'Content-Type',
9529 /* non-authorable headers in XHR, which are however requested by some UAs */
9530 'Accept-Encoding',
9531 'DNT',
9532 'Origin',
9533 /* MediaWiki whitelist */
9534 'User-Agent',
9535 'Api-User-Agent',
9536 /* Allowing caching preflight requests, see T269636 */
9537 'Access-Control-Max-Age',
9538 /* OAuth 2.0, see T322944 */
9539 'Authorization',
9540];
9541
9548
9549// endregion -- End AJAX and API
9550
9551/***************************************************************************/
9552// region Shell and process control
9559
9565
9570
9576
9601
9605$wgPhpCli = '/usr/bin/php';
9606
9622
9627
9641$wgShellboxUrls = [ 'default' => null ];
9642
9651
9652// endregion -- end Shell and process control
9653
9654/***************************************************************************/
9655// region HTTP client
9665
9675
9685
9695
9701
9706
9711
9728
9742
9749
9750// endregion -- End HTTP client
9751
9752/***************************************************************************/
9753// region Job queue
9763
9772
9777
9782
9783// endregion -- End job queue
9784
9785/***************************************************************************/
9786// region Miscellaneous
9794
9833 'paths' => [],
9834 'modules' => [],
9835 'global' => [
9836 # Timeout in seconds
9837 'timeout' => 360,
9838 # 'domain' is set to $wgCanonicalServer in Setup.php
9839 'forwardCookies' => false,
9840 'HTTPProxy' => null
9841 ]
9842];
9843
9864 'default' => [
9865 'class' => EventRelayerNull::class,
9866 ]
9867];
9868
9887
9895
9905
9915
9925
9935
9945
9956
9963$wgSkinsPreferred = [ 'vector-2022', 'vector' ];
9964
9965/*
9966 * This file uses VisualStudio style region/endregion fold markers which are
9967 * recognised by PHPStorm. If modelines are enabled, the following editor
9968 * configuration will also enable folding in vim, if it is in the last 5 lines
9969 * of the file. We also use "@name" which creates sections in Doxygen.
9970 *
9971 * vim: foldmarker=//\ region,//\ endregion foldmethod=marker
9972 */
9973// 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.
array $wgExternalServers
Shortcut for setting $wgLBFactoryConf["externalClusters"].
$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".
string[] $wgGroupInheritsPermissions
Groups that should inherit permissions from another group.
$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...
$wgUseContentMediaStyles
Temporary flag to ship the styles for the media HTML structure that replaces legacy,...
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
Add a preconnect link for browsers to a remote FileRepo host.
$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...
$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.
$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.
string null $wgMetricsTarget
Output target URI for the MetricsFactory service, e.g.
$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 text blobs or false to put them in the text table of the local wiki database.
$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...
int $wgTemplateLinksSchemaMigrationStage
Templatelinks table schema migration stage, for normalizing tl_namespace and tl_title fields.
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...
$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.
$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.
array $wgSkinsPreferred
List of preferred skins to be listed higher in Special:Preferences.
$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 ...
$wgDiff3
Path to the GNU diff3 utility.
$wgBaseDirectory
Absolute filesystem path of the root directory of the MediaWiki installation.
$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.
string bool $wgLocalHTTPProxy
Reverse proxy to use for requests to domains in $wgLocalVirtualHosts.
$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
Legacy mapping from URI schemes to RCFeed subclasses.
$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.
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.
$wgWikiFarmSiteDetector
EXPERIMENTAL: Callback to use to determine the name of the requested site for the current request.
array $wgReportToEndpoints
List of endpoints for the Reporting API.
$wgAllowJavaUploads
Allow Java archive uploads.
$wgResourceLoaderMaxage
How long a CDN or browser may cache a ResourceLoader HTTP response.
$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.
bool array $wgInterwikiCache
Interwiki cache as an associative array.
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.
string bool $wgMaxImageArea
The maximum number of pixels a source image can have if it is to be scaled down by a scaler that requ...
$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.
$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.
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).
$wgEnableRemoteBagOStuffTests
If this is set to true, phpunit will run integration tests against remote caches defined in $wgObject...
$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.
string $wgMetricsPrefix
Service name prefix for the MetricsFactory service.
$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.
$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.
$wgTempCategoryCollations
Additional category collations to store during LinksUpdate.
$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...
$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.
array $wgExternalStores
List of enabled ExternalStore protocols.
$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...
string null $wgMetricsFormat
Output format for the MetricsFactory service, e.g.
$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.
$wgWikiFarmSettingsExtension
EXPERIMENTAL: The file extension to be used when looking up site-specific settings files in $wgWikiFa...
$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.
$wgWikiFarmSettingsDirectory
EXPERIMENTAL: A directory that contains site-specific configuration files.
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.
$wgForceDeferredUpdatesPreSend
Force deferred updates to be run before sending a response to the client, instead of attempting to ru...
$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...
$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 SCHEMA_COMPAT_OLD
Definition Defines.php:273
const AV_SCAN_FAILED
Definition Defines.php:98
const AV_VIRUS_FOUND
Definition Defines.php:96
const APCOND_AGE
Definition Defines.php:178
const NS_HELP
Definition Defines.php:76
const NS_USER
Definition Defines.php:66
const CONTENT_MODEL_CSS
Definition Defines.php:209
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:313
const CONTENT_MODEL_WIKITEXT
Definition Defines.php:207
const CONTENT_MODEL_JSON
Definition Defines.php:211
const NS_HELP_TALK
Definition Defines.php:77
const NS_CATEGORY_TALK
Definition Defines.php:79
const CONTENT_MODEL_TEXT
Definition Defines.php:210
const CACHE_DB
Definition Defines.php:87
const AV_SCAN_ABORTED
Definition Defines.php:97
const APCOND_EDITCOUNT
Definition Defines.php:177
const NS_TALK
Definition Defines.php:65
const SCHEMA_COMPAT_NEW
Definition Defines.php:275
const AV_NO_VIRUS
Definition Defines.php:95
const NS_USER_TALK
Definition Defines.php:67
const SCHEMA_COMPAT_TEMP
Definition Defines.php:274
const CONTENT_MODEL_UNKNOWN
Definition Defines.php:212
const NS_PROJECT
Definition Defines.php:68
const NS_CATEGORY
Definition Defines.php:78
const CONTENT_MODEL_JAVASCRIPT
Definition Defines.php:208
const NS_TEMPLATE_TALK
Definition Defines.php:75
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