X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=c21301f1b9afb15f37247e47834a140613e2fa2a;hb=59b627b0b7ad87317601f676a1ebd2441f63f59d;hp=6b5155aaeeeca9c161f0e79bae1827ce10ad2fcc;hpb=7c9909f09dbb1dad994a0cc8b89db1a97b74073b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 6b5155aaee..c21301f1b9 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -168,7 +168,7 @@ $wgUsePathInfo = ( strpos( PHP_SAPI, 'cgi' ) === false ) && * This variable was provided to support those providers. * * @since 1.11 - * @deprecated since 1.25; support for '.php5' is being phased out of MediaWiki + * @deprecated since 1.25; support for '.php5' has been phased out of MediaWiki * proper. Backward-compatibility can be maintained by configuring your web * server to rewrite URLs. See RELEASE-NOTES for details. */ @@ -197,14 +197,14 @@ $wgScriptExtension = '.php'; /** * The URL path to index.php. * - * Defaults to "{$wgScriptPath}/index{$wgScriptExtension}". + * Defaults to "{$wgScriptPath}/index.php". */ $wgScript = false; /** * The URL path to load.php. * - * Defaults to "{$wgScriptPath}/load{$wgScriptExtension}". + * Defaults to "{$wgScriptPath}/load.php". * @since 1.17 */ $wgLoadScript = false; @@ -484,7 +484,7 @@ $wgImgAuthUrlPathMap = array(); * - scriptDirUrl URL of the MediaWiki installation, equivalent to $wgScriptPath, e.g. * https://en.wikipedia.org/w * - scriptExtension Script extension of the MediaWiki installation, equivalent to - * $wgScriptExtension, e.g. .php5 defaults to .php + * $wgScriptExtension, e.g. ".php5". Defaults to ".php". * * - articleUrl Equivalent to $wgArticlePath, e.g. https://en.wikipedia.org/wiki/$1 * - fetchDescription Fetch the text of the remote file description page. Equivalent to @@ -526,12 +526,14 @@ $wgForeignFileRepos = array(); $wgUseInstantCommons = false; /** - * Name of the remote repository to which users will be allowed to upload - * files in their editors. Used to find a set of message names to describe - * the legal requirements for uploading to that wiki, and suggestions for - * when those requirements are not met. + * Array of foreign file repo names (set in $wgForeignFileRepos above) that + * are allowable upload targets. These wikis must have some method of + * authentication (i.e. CentralAuth), and be CORS-enabled for this wiki. + * + * Example: + * $wgForeignUploadTargets = array( 'shared' ); */ -$wgRemoteUploadTarget = 'default'; +$wgForeignUploadTargets = array(); /** * File backend structure configuration. @@ -718,6 +720,14 @@ $wgCopyUploadAsyncTimeout = false; */ $wgMaxUploadSize = 1024 * 1024 * 100; # 100MB +/** + * Minimum upload chunk size, in bytes. When using chunked upload, non-final + * chunks smaller than this will be rejected. May be reduced based on the + * 'upload_max_filesize' or 'post_max_size' PHP settings. + * @since 1.26 + */ +$wgMinUploadChunkSize = 1024; # 1KB + /** * Point the upload navigation link to an external URL * Useful if you want to use a shared repository by default @@ -745,7 +755,7 @@ $wgUploadMissingFileUrl = false; * * @par Example: * @code - * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb{$wgScriptExtension}"; + * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php"; * @endcode */ $wgThumbnailScriptPath = false; @@ -1868,6 +1878,32 @@ $wgDBservers = false; */ $wgLBFactoryConf = array( 'class' => 'LBFactorySimple' ); +/** + * The ID of the current data center + * @since 1.27 + */ +$wgDataCenterId = 'default'; + +/** + * Map of data center IDs to their role ("master" or "slave") + * + * Multiple data centers can be setup to handle MediaWiki, with HTTP + * POSTs routed to the master data center and GET/HEAD/OPTION routed to + * any data center (usually the closest to the end user). In such setups, + * this setting should be set to the appropriate value in the site + * config for each data center. + * @since 1.27 + */ +$wgDataCenterRoles = array( 'default' => 'master' ); + +/** + * After a state-changing request is done by a client, this determines + * how many seconds that client should keep using the master datacenter. + * This avoids unexpected stale or 404 responses due to replication lag. + * @since 1.27 + */ +$wgDataCenterUpdateStickTTL = 10; + /** * File to log database errors to */ @@ -2516,13 +2552,15 @@ $wgUseSquid = false; $wgUseESI = false; /** - * Send X-Vary-Options header for better caching (requires patched Squid) + * Send the Key HTTP header for better caching. + * See https://datatracker.ietf.org/doc/draft-fielding-http-key/ for details. + * @since 1.27 */ -$wgUseXVO = false; +$wgUseKeyHeader = false; /** - * Add X-Forwarded-Proto to the Vary and X-Vary-Options headers for API - * requests and RSS/Atom feeds. Use this if you have an SSL termination setup + * Add X-Forwarded-Proto to the Vary and Key headers for API requests and + * RSS/Atom feeds. Use this if you have an SSL termination setup * and need to split the cache between HTTP and HTTPS for API requests, * feed requests and HTTP redirect responses in order to prevent cache * pollution. This does not affect 'normal' requests to index.php other than @@ -2541,14 +2579,21 @@ $wgVaryOnXFP = false; $wgInternalServer = false; /** - * Cache timeout for the squid, will be sent as s-maxage (without ESI) or - * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in - * the Squid config. + * Cache TTL for the CDN sent as s-maxage (without ESI) or + * Surrogate-Control (with ESI). Without ESI, you should strip + * out s-maxage in the Squid config. * -* 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days. + * 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days. */ $wgSquidMaxage = 18000; +/** + * Cache timeout for the CDN when DB slave lag is high + * @see $wgSquidMaxage + * @since 1.27 + */ +$wgCdnMaxageLagged = 30; + /** * Default maximum age for raw CSS/JS accesses * @@ -3523,6 +3568,8 @@ $wgResourceLoaderDebug = false; /** * Put each statement on its own line when minifying JavaScript. This makes * debugging in non-debug mode a bit easier. + * + * @deprecated since 1.27: Always false; no longer configurable. */ $wgResourceLoaderMinifierStatementsOnOwnLine = false; @@ -3530,6 +3577,8 @@ $wgResourceLoaderMinifierStatementsOnOwnLine = false; * Maximum line length when minifying JavaScript. This is not a hard maximum: * the minifier will try not to produce lines longer than this, but may be * forced to do so in certain cases. + * + * @deprecated since 1.27: Always 1,000; no longer configurable. */ $wgResourceLoaderMinifierMaxLineLength = 1000; @@ -4470,6 +4519,7 @@ $wgReservedUsernames = array( 'msg:usermessage-editor', // Default user for leaving user messages 'msg:proxyblocker', // For $wgProxyList and Special:Blockme (removed in 1.22) 'msg:spambot_username', // Used by cleanupSpam.php + 'msg:autochange-username', // Used by anon category RC entries (parser functions, Lua & purges) ); /** @@ -5172,6 +5222,12 @@ $wgRateLimits = array( 'ip' => null, // for each anon and recent account 'subnet' => null, // ... within a /24 subnet in IPv4 or /64 in IPv6 ), + 'upload' => array( + 'user' => null, + 'newbie' => null, + 'ip' => null, + 'subnet' => null, + ), 'move' => array( 'user' => null, 'newbie' => null, @@ -5216,6 +5272,13 @@ $wgRateLimits = array( 'user' => null, 'newbie' => null, ), + 'purge' => array( // purging pages + 'anon' => null, + 'user' => null, + 'newbie' => null, + 'ip' => null, + 'subnet' => null, + ), ); /** @@ -5415,13 +5478,6 @@ $wgDebugRawPage = false; */ $wgDebugComments = false; -/** - * Extensive database transaction state debugging - * - * @since 1.20 - */ -$wgDebugDBTransactions = false; - /** * Write SQL queries to the debug log. * @@ -5432,13 +5488,6 @@ $wgDebugDBTransactions = false; */ $wgDebugDumpSql = false; -/** - * Trim logged SQL queries to this many bytes. Set 0/false/null to do no - * trimming. - * @since 1.24 - */ -$wgDebugDumpSqlLength = 500; - /** * Performance expectations for DB usage * @@ -6672,6 +6721,7 @@ $wgHooks = array(); */ $wgJobClasses = array( 'refreshLinks' => 'RefreshLinksJob', + 'deleteLinks' => 'DeleteLinksJob', 'htmlCacheUpdate' => 'HTMLCacheUpdateJob', 'sendMail' => 'EmaillingJob', 'enotifNotify' => 'EnotifNotifyJob',