Руководство:Настройки конфигурации

From mediawiki.org
This page is a translated version of the page Manual:Configuration settings and the translation is 83% complete.
Outdated translations are marked like this.
Начиная с MediaWiki 1.39 , параметры конфигурации основаны на MainConfigSchema.php.

Это индекс всех поддерживаемых параметров настройки, располагающихся в файле DefaultSettings.php.

Никогда не следует редактировать DefaultSettings.php; просто скопируйте необходимые строки в LocalSettings.php и затем измените то, что необходимо.

Если вы не можете найти здесь параметр конфигурации, посмотрите, определён ли он в DefaultSettings.php. Параметр должен иметь там некоторую документацию.

Настройки, удалённые в версиях MediaWiki до 1.35, не перечислены здесь. Пожалуйста, используйте поле поиска, чтобы найти соответствующую страницу руководства (например, Manual:$wgAllowAnonymousMinor).
Перечисление по алфавиту | Перечисление по функциональности | Категория:Параметры конфигурации MediaWiki

Общие настройки

Глобальные объекты

  • $wgAutoloadLocalClasses Array mapping class names to filenames, for autoloading.
  • $wgConf Create a site configuration object. Not used for much in a default install.

URL-адреса сервера и пути к файлам

  • $IP – Полный путь к каталогу установки.
  • $wgActionPaths – Пути для разного рода пользовательских действий. Позволяют сокращать URL.
  • $wgAppleTouchIcon Optional URL to an icon to use when bookmarking to the home screen on Apple handheld devices
  • $wgArticlePath The base URL used to create article links.
  • $wgAssumeProxiesUseDefaultProtocolPorts When the wiki is running behind a proxy and this is set to true, assumes that the proxy exposes the wiki on the standard ports.
  • $wgBaseDirectory Absolute filesystem path of the root directory of the MediaWiki installation.
  • $wgCanonicalServer – Канонический URL-адрес сервера, для использования в IRC-каналах, уведомлениях по электронной почте и т.д.
  • $wgConfigRegistry – Регистр заводских функций для создания объектов конфигурации
  • $wgExtensionAssetsPath URL to extensions directory.
  • $wgExtensionDirectory The file system path to the extensions directory.
  • $wgFavicon – URL иконки сайта favicon.
  • $wgFFmpegLocation Executable name of FFmpeg client.
  • $wgFFprobeLocation Executable name of FFprobe.
  • $wgFileCacheDirectory Directory where the cached pages will be saved when using server-side caching.
  • $wgForceHTTPS Redirect insecure HTTP requests to HTTPS.
  • $wgHttpsPort Port where you have HTTPS running. Supports HTTPS on non-standard ports.
  • $wgImgAuthPath The base path for img_auth.php.
  • $wgLoadScript The URL path to load.php.
  • $wgLocalStylePath – Также известна под названием $wgStylePath , но не использует внешний домен.
  • $wgLogoHD (удалено в 1.42) – URL-адреса для HD-версий логотипа сайта.
  • $wgLogos – URL-путь к различным логотипам вики.
  • $wgLogo – URL логотипа сайта.
  • $wgMainPageIsDomainRoot – Определяет, должна ли главная страница служить корнем домена.
  • $wgReferrerPolicy Value for the referrer policy meta tag.
  • $wgRestPath – URL путь к rest.php
  • $wgScriptPath – Путь к базовому URL-адресу.
  • $wgScript – URL адрес index.php.
  • $wgServerName – Имя сервера без протокольной части URL.
  • $wgServer The base URL of the server.
  • $wgStyleDirectory The file system path to the skins directory.
  • $wgStylePath The URL of the skins directory.
  • $wgStyleSheetPath (удалено в 1.38)Do not set $wgStyleSheetPath. Use $wgStylePath instead.
  • $wgThumbPath The base path for thumb_handler.php.
  • $wgTmpDirectory The path of the temporary directory.
  • $wgUploadBaseUrl – Базовый URL-адрес для загруженных изображений, если общий каталог загрузки не используется.
  • $wgUploadDirectory The file system path of the upload directory.
  • $wgUploadPath The path segment of the upload directory.
  • $wgUploadStashScalerBaseUrl (устарело в 1.36)To enable remote on-demand scaling, set this to the thumbnail base URL.
  • $wgUsePathInfo – Стоит ли использовать 'красивые' URL-адреса.

См. также настройки путей к скинам.

Файлы и их загрузка

Uploads have to be specially set up to be secure.

Общие загрузки

These settings are kept for backward compatibility, see $wgForeignFileRepos for the new setting, or $wgUseInstantCommons if you only need read access to images on Commons.

MIME-типы

Внимание Внимание: This is not a configuration setting, but a global state variable. It should be used solely by thumb.php !

См. также: Manual:Определение типа MIME

Изображения

См. также: Руководство:Настройка загрузки файлов

DjVu

EXIF

  • $wgShowEXIF Show EXIF data at the end of file description pages.
  • $wgUpdateCompatibleMetadata Whether to automatically update the img_metadata field if it is outdated but compatible with the current version.

ImageMagick

SVG

Настройки миниатюр

Антивирус

  • $wgAntivirus – Внутреннее имя антивирусного сканера.
  • $wgAntivirusRequired – Определяет, что в случае неудачной проверки на вирусы загрузка файла будет отклонена.
  • $wgAntivirusSetup Configuration for different virus scanners.

Настройки электронной почты

See also User Access: $wgEmailConfirmToEdit

  • $wgAdditionalMailParams Additional email parameters, will be passed as the last argument to mail() PHP function call.
  • $wgAllowHTMLEmail – Установка значения 'true' разрешит включать HTML в e-mail.
  • $wgEmailAuthentication – Установите true для включении аутентификации (подтверждения) для этой вики. За исключением писем с напоминанием пароля, функции электронной почты работают только для аутентифицированных адресов электронной почты.
  • $wgEmergencyContact Site admin email address
  • $wgEnableEmail Set to true to enable basic email features.
  • $wgEnableSpecialMute Set to true to enable the Special Mute page.
  • $wgEnableUserEmailBlacklist (удалено в 1.37)Set to true to enable user-to-user email blacklist.
  • $wgEnableUserEmailMuteList Set to true to enable user-to-user email mutelist.
  • $wgEnableUserEmail – Установка значения 'true' разрешит участникам отправлять e-mail друг другу через $sp.
  • $wgNewPasswordExpiry – Время, в секундах, когда истечёт срок действия временного пароля.
  • $wgNoReplyAddress Reply-to address for automatically generated emails.
  • $wgPasswordExpirationDays The number of days that a user's password is good for.
  • $wgPasswordExpireGrace The number of seconds after a user's password expires during which they can log in without a password change.
  • $wgPasswordReminderResendTime – Минимальное время, в часах, которое должно пройти между использованием функции напоминания пароля.
  • $wgPasswordSender Password reminder email address.
  • $wgSMTP – Для использования прямого (аутентифицированного) подключения к SMTP-серверу.
  • $wgUserEmailConfirmationTokenExpiry The time, in seconds, after which a email address confirmation token expires.
  • $wgUserEmailUseReplyTo Set to true to put the sending user's email in a Reply-To header instead of From.

Настройки уведомлений по электронной почте (Enotif)

Actual notifications for each user are defined in the options. You can change defaults with $wgDefaultUserOptions .
  • $wgEnotifFromEditor Whether to make email notifications appear to come from the user who makes the edit
  • $wgEnotifImpersonal Send a generic mail instead of a personalised mail for each user.
  • $wgEnotifMaxRecips Maximum number of users to mail at once when using impersonal mail.
  • $wgEnotifMinorEdits – Установить значение 'true' для получения уведомлений для правок, отмеченных как «малые»
  • $wgEnotifRevealEditorAddress Set to true to insert the page editor's email address into the email notifications Reply-To address
  • $wgEnotifUseRealName – Использовать настоящее имя вместо имени участника в поле «from» при отправлении почты.
  • $wgEnotifUserTalk Enable email notifications for edits on users' talk pages.
  • $wgEnotifWatchlist Set to true to allow the email notification for watched pages
  • $wgUseEnotif Overall "use Enotif" setting
  • $wgUsersNotifiedOnAllChanges Array of usernames who will be sent a notification email for every change which occurs on a wiki.

Настройки базы данных

Настройки LoadBalancer

Специфично для MySQL

Специфично для PostgreSQL

  • $wgDBport – Порт базы данных. Изпользуется только вариацией PostgreSQL.

Специфично для SQLite

Общие настройки БД

Extension fields

  • $wgExtPGNewFields (удалено в 1.36)Extension defined fields to be added to existing tables
  • $wgExtNewTables (удалено в 1.36)Extension Defined tables to be added on schema change
  • $wgExtNewFields (удалено в 1.36)Extension defined fields to be added to existing tables
  • $wgExtNewIndexes (удалено в 1.36)Extension defined indexes to be added to existing tables
  • $wgExtPGAlteredFields (удалено в 1.36)Extension defined columns to be altered in tables
  • $wgExtModifiedFields (удалено в 1.36)Extension defined fields to change existing tables

Обработчики контента и хранилище

Хаки и лимиты производительности

  • $wgAllowSchemaUpdates – Разрешить выполнение обновлений схемы базы данных с помощью скрипта update.php.
  • $wgAllowSlowParserFunctions – Разрешает использование медленных функций парсера.
  • $wgCriticalSectionTimeLimit The maximum time critical sections are allowed to stay open.
  • $wgDisableQueryPages – Отключает все запросы страницы если включен miser mode, а не только некоторые из них.
  • $wgForceDeferredUpdatesPreSend Force deferred updates to be run before sending a response to the client, instead of attempting to run them after sending the response.
  • $wgLinkHolderBatchSize – Размер пакета LinkHolderArray.
  • $wgMaxArticleSize – Максимальный размер страницы в килобайтах.
  • $wgMaximumMovedPages – Максимальное число страниц, которое может быть переименовано при переименовании подстраниц.
  • $wgMaxJobDBWriteDuration Max time (in seconds) a job-generated transaction can spend in writes.
  • $wgMaxUserDBWriteDuration Max time (in seconds) a user-generated transaction can spend in writes.
  • $wgMemoryLimit The minimum amount of memory that MediaWiki "needs"; MediaWiki will try to raise PHP's memory limit if it's below this amount.
  • $wgMiserMode Enable/disable database-intensive features
  • $wgMultiShardSiteStats Whether site_stats table should have multiple rows.
  • $wgPoolCounterConf Configuration for processing pool control.
  • $wgPoolCountClientConf (введено в 1.40)Configuration array for the PoolCounter client.
  • $wgQueryCacheLimit Number of rows to cache in 'querycache' table when miser mode is on.
  • $wgQueryPages List of Special pages that inherit from QueryPage, that should also be taken in account by the updateSpecialPages.php maintenance script.
  • $wgRequestTimeLimit Set a limit on server request wall clock time.
  • $wgTransactionalTimeLimit Throttle for timing out transactional POST requests
  • $wgWantedPagesThreshold – Минимальное количество страниц, которые должны ссылаться на страницу, прежде чем она появится в Special:Wantedpages.

Кеш

Основная страница: Manual:Caching
See: Interwiki for Interwiki cache settings.

Файловый кеш

Settings for Server side file caching.

Кеш сообщений

  • $wgAdaptiveMessageCache – Отслеживает, какие сообщения запрашиваются, и загружает только наиболее используемые сообщения.
  • $wgLocalisationCacheConf – Конфигурация кэширования локализации.
  • $wgMessageCacheType – Настройка кэширования сообщений
  • $wgUseLocalMessageCache Make a local copy of the message cache, in addition to memcached.

Кеш боковой панели

Кеш парсера

Настройки Memcached

Settings for configuring the Memcached memory-based object store (if you are using it) docs/memcached.md has more details.

WAN кеш

Настройки HTTP-прокси (CDN)

Настройки для конфигурации Mediawiki с использованием кэширующего HTTP-прокси-сервера. Они относятся как к кэшированию с помощью Varnish, так и к Squid.

  • $wgCdnMatchParameterOrder Indicates if should take query parameters order on incoming requests into account for CDN caching
  • $wgCdnMaxageLagged Cache timeout for the CDN when DB replica lag is high
  • $wgCdnMaxageStale Cache timeout in seconds when delivering a stale ParserCache response due to PoolCounter contention.
  • $wgCdnMaxageSubstitute Cache timeout for the CDN when a response is known to be wrong or incomplete (due to load)
  • $wgCdnMaxAge Cache TTL for the CDN sent as s-maxage (without ESI) or Surrogate-Control (with ESI).
  • $wgCdnReboundPurgeDelay Secondary delayed purges of URLs
  • $wgCdnServersNoPurge Same as $wgCdnServers , except no HTTP purges will be sent and CIDR ranges are accepted
  • $wgCdnServers An array of individual proxy servers to help MediaWiki detect if the request has been proxied.
    But also to send back to the proxy PURGE commands on changes.
  • $wgForcedRawSMaxage Default maximum age (in seconds) for raw CSS/JavaScript accesses.
  • $wgInternalServer Internal server name as known to Squid, if different than $wgServer .
  • $wgLoggedOutMaxAge (удалено в 1.38) – Кэш TTL для агента пользователя, переданного в качестве максимального возраста, для зарегистрированных пользователей.
  • $wgSquidMaxage (удалено в 1.35)Cache timeout for the squid.
  • $wgSquidPurgeUseHostHeader (удалено в 1.42)Whether to use a Host header in purge requests sent to the proxy servers configured in $wgSquidServers.
  • $wgSquidServersNoPurge (удалено в 1.35)Same as $wgSquidServers , except that MW has no methods to send HTTP PURGE to an origin part of the configured ranges
  • $wgSquidServers (удалено в 1.35)An array of individual proxy servers to help MediaWiki detect if the request has been proxied.
    But also to send back to the proxy PURGE commands on changes.
  • $wgUseCdn – Включить/отключить кэширование просмотра страниц.
  • $wgUseESI (устарело в 1.33)If you run Squid3 with ESI support, enable this.
  • $wgUsePrivateIPs Whether private X-Forwarded-For IPs should be accepted
  • $wgUseSquid (удалено в 1.35) – Включить/Отключить Squid.
  • $wgVaryOnXFP Whether to add X-Forwarded-Proto to the Vary header for API requests and RSS/Atom feeds.

HTCP multicast purging

Настройки кодирования языков, регионов и символов

  • $wgAllUnicodeFixes Whether to always convert certain Unicode sequences to modern ones regardless of the content language.
  • $wgDefaultLanguageVariant Default language variant.
  • $wgDisabledVariants Disabled variants for language variant conversion.
  • $wgDisableLangConversion Whether to enable language variant conversion.
  • $wgDisableTitleConversion Whether to enable language variant conversion for links.
  • $wgDummyLanguageCodes List of language codes that have been renamed to new (correct) codes, or don't correspond to an actual interface language.
  • $wgExtraInterlanguageLinkPrefixes Array of interwiki prefixes to be treated as language links.
  • $wgExtraLanguageCodes List of mappings from one language code to another
  • $wgExtraLanguageNames – Список наименований языков, заменяющих значения по умолчанию в Names.php.
  • $wgFixArabicUnicode (удалено в 1.35)Set this to true to clean up archaic Unicode sequences in Arabic text.
  • $wgFixMalayalamUnicode (удалено в 1.35)Set this to true to clean up archaic Unicode sequences in Malayalam text.
  • $wgForceUIMsgAsContentMsg – Перечисляет UI messages которые указывают на файлы, содержащие локализованные URL-ссылки
  • $wgGrammarForms – Используется функцией парсера {{GRAMMAR:}}.
  • $wgHideInterlanguageLinks – Скрыть интервики-ссылки из бокового сайта.
  • $wgInterlanguageLinkCodeMap – Карта межъязыкового кода ссылки на языковые коды, чтобы заменить то, что отображается как название языка, когда интервики-код не соответствует ему точно.
  • $wgInterwikiMagic Treat language links as magic connectors, not inline links.
  • $wgLangObjCacheSize (удалено в 1.37)Language cache size, or really how many languages can we handle simultaneously without degrading to crawl speed.
  • $wgLanguageCode Site language code.
  • $wgLegacyEncoding Set this to the character set, which you used before you updated to MediaWiki 1.5 (eg 'ISO-8859-1'). MediaWiki will then perform a temporary character set conversion when loading old revisions, which are not marked with "utf-8" flag (revisions created with MediaWiki 1.4 and earlier).
  • $wgLegacySchemaConversion (удалено в 1.39)Option to speed up the conversion step for large sites when migrating the schema from 1.4 to 1.5
  • $wgLoginLanguageSelector Show a bar of language selection links in the user login and user registration forms.
  • $wgMaxMsgCacheEntrySize Maximum entry size in the message cache, in bytes.
  • $wgOverrideUcfirstCharacters List of Unicode characters for which capitalization is overridden in Language::ucfirst.
  • $wgRawHtmlMessages List of messages which might contain raw HTML.
  • $wgUseDatabaseMessages Translation using MediaWiki: namespace.
  • $wgUsePigLatinVariant Whether to enable the pig latin variant of English (en-x-piglatin), used to ease variant development work.
  • $wgUseXssLanguage (введено в 1.41)Whether to enable the x-xss language code, used to make checking for XSS issues more convenient.
  • $wgVariantArticlePath Used for links when having language's variants.
  • $wgUserFallbackLanguages – максимальное количество резервных языков на пользователя

Настройки часовых поясов

  • $wgLocaltimezone – Имитируйте часовой пояс, в котором, по мнению сервера, он находится.
  • $wgLocalTZoffset Add a distance to the server timezone in minutes.

Language-specific

английский
  • $wgAmericanDates – Использовать 'mdy' вместо 'dmy' как формат даты по умолчанию. Например 'May 12' вместо '12 May'.
арабский/хинди
  • $wgTranslateNumerals For Hindi, Arabic, and other languages with their own numeral systems, use local numerals instead of Western style (0-9) numerals in some areas of the interface.

Формат вывода и настройки темы оформления

Вывод

Темы оформления

  • $wgDefaultSkin – Тема оформления по умолчанию для новых пользователей.
  • $wgFallbackSkin Fallback skin used when the skin defined by $wgDefaultSkin can't be found.
  • $wgFooterIcons – Абстрактный список иконок нижнего колонтитула для скинов. Он заменяет старый код copyrightico и poweredbyico, на который до MediaWiki 1.27 можно было повлиять с помощью $wgCopyrightIcon
  • $wgSkinMetaTags An array of open graph tags which should be added by all skins.
  • $wgSkipSkins Specify the name of skins that should not be presented in the list of available skins.
  • $wgSkipSkin (удалено в 1.35)Specify the name of a skin that should not be presented in the list of available skins.
  • $wgUseCombinedLoginLink Login / create account link behavior when it's possible for anonymous users to create an account.
  • $wgVectorUseIconWatch Watch and unwatch as a star icon rather than a link (for Vector skin only).
  • $wgVectorUseSimpleSearch Search form behavior for Vector skin only.

ResourceLoader

См. Загрузчик ресурсов для более детальной информации.

Заголовки страниц и перенаправления

  • $wgDisableHardRedirects Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link.
  • $wgFixDoubleRedirects – Автоматическое исправление двойных перенаправлений при переименовании страниц.
  • $wgInvalidRedirectTargets – Массив неверных целей перенаправлений.
  • $wgShortPagesNamespaceBlacklist (удалено в 1.37)Optional array of namespaces which should be blacklisted from Special:ShortPages
  • $wgShortPagesNamespaceExclusions Optional array of namespaces which should be excluded from Special:ShortPages
  • $wgCapitalLinkOverrides – Конфигурация пространства имен для $wgCapitalLinks .
  • $wgCapitalLinks Set this to false to avoid forcing the first letter of links to capitals.
  • $wgLegalTitleChars (устарело в 1.41)Override the default list of illegal characters in page titles.
  • $wgMaxRedirects (удалено в 1.39) – Максимальное количество перенаправлений, которые используются при разрешении перенаправлений.

Пространства имён

Мобильная поддержка

Интервики-ссылки и сайты

Кеш интервики

См. interwiki cache для более детальной информации.

Парсер

HTML

  • $wgRawHtml – Разрешить необработанный, непроверенный HTML в тегах ‎<html>...‎</html>
  • $wgTidyConfig Configuration of the HTML postprocessing tool to use for fixing invalid HTML code.

Статистика и анализ контента

  • $wgActiveUserDays The number of days within which a person must make edits to be considered an "active" user
  • $wgArticleCountMethod Method used to determine if a page in a content namespace should be counted as a valid content page (article).
  • $wgDisableCounters (удалено в 1.35) – Отключение счетчиков просмотра страниц.
  • $wgExperiencedUserEdits Determines the number of edits needed to qualify at the "Experienced user" level.
  • $wgExperiencedUserMemberSince Determines the number of days needed since account creation to qualify at the "Experienced user" level.
  • $wgLearnerEdits Determines the number of edits needed to qualify at the "Learner" experience level.
  • $wgLearnerMemberSince Determines the number of days needed since account creation to qualify at the "Learner" experience level.
  • $wgManualRevertSearchRadius Maximum number of revisions of a page that will be checked against every new edit made to determine whether the edit was a manual revert.
  • $wgRevertedTagMaxDepth Maximum depth (revision count) of reverts that will have their reverted edits marked with the mw-reverted change tag.

Аккаунты пользователей, аутентификация

Аутентификация

Права пользователей, контроль доступа и мониторинг

  • $wgAddGroups – Управление, какие группы можно добавить при помощи Special:Userrights.
  • $wgAutoblockExpiry – Количество секунд действия автоблокировки
  • $wgBlockAllowsUTEdit – Разрешить блокированным участникам редактировать собственные страницы обсуждения
  • $wgDeleteRevisionsBatchSize Page deletions with > this number of revisions will use the job queue.
  • $wgDnsBlacklistUrls List of DNS blacklists to use, if $wgEnableDnsBlacklist is true.
  • $wgEmailConfirmToEdit – Участникам необходимо подтвердить свой email адрес перед редактированием, включается значением 'true'.
  • $wgEnableDnsBlacklist Whether to use DNS blocklists in $wgDnsBlacklistUrls to check for open proxies.
  • $wgGrantPermissionGroups Used to define grant groups and assign grants to them.
  • $wgGrantPermissions Used to define grants and assign permissions to them.
  • $wgGrantRiskGroups (введено в 1.42)Group grants by risk level.
  • $wgGroupInheritsPermissions Groups that should inherit permissions from another group.
  • $wgGroupPermissions – Использовать это для установки прав доступа для групп и участников.
  • $wgGroupsAddToSelf – Позволяет участникам добавлять себя в указанные группы при помощи Special:Userrights.
  • $wgGroupsRemoveFromSelf – Позволяет участникам удалять себя из указанных групп при помощи Special:Userrights.
  • $wgHideUserContribLimit The maximum number of edits a user can have and can still be hidden by users with the hideuser permission.
  • $wgImplicitGroups – Группы, не отображаемые на Special:ListUsers или где-нибудь еще
  • $wgPasswordAttemptThrottle – Ограничивает количество попыток ввода пароля данного участника с данного IP-адреса.
  • $wgPrivilegedGroups (введено в 1.40.1)List of groups which should be considered privileged (user accounts belonging in these groups can be abused in dangerous ways).
  • $wgProxyList A list of IP addresses to be banned
  • $wgProxyWhitelist – Белый список прокси: список адресов, которые не являются прокси, несмотря на то, что могут сказать другие методы.
  • $wgRateLimitsExcludedIPs – Массив IP-адресов/CIDR-диапазонов, которые не подпадают под ограничения скорости.
  • $wgRateLimits Simple rate limiter options to brake edit floods.
  • $wgRemoveGroups – Управление, из каких групп можно удалить при помощи Special:Userrights.
  • $wgRevokePermissions – Ключи доступа отозваны у пользователей в каждой группе.
  • $wgWhitelistReadRegexp Whitelists publicly readable titles with regular expressions.
  • $wgWhitelistRead – Страницы, которые анонимные пользователи могут видеть.

Доступ

Блокировка/запрет и некоторые другие сопутствующие настройки.

  • $wgAccountCreationThrottle – Количество аккаунтов с одного IP-адреса, 0 для отключения.
  • $wgApplyIpBlocksToXff Apply IP address blocks also to users having a blocked IP in their XFF header.
  • $wgAutoConfirmAge – Количество секунд с момента регистрации, требуемых для получения аккаунтом флага 'autoconfirmed'.
  • $wgAutoConfirmCount – Требуемое число правок для получения аккаунтом флага 'autconfirmed'.
  • $wgAutopromoteOnceLogInRC Whether to put user rights log entries for autopromotion in recent changes.
  • $wgAutopromoteOnce Conditions of automatic promotion of user to specific groups that are done only once.
  • $wgAutopromote – Условия автоматического присвоения специальных прав участникам
  • $wgAvailableRights A list of available rights, in addition to the ones defined by the core.
  • $wgBlockCIDRLimit – Максимальный CIDR-диапазон IP-адресов, который может быть заблокирован.
  • $wgBlockDisablesLogin – Запрещает вход в учётные записи заблокированных участников.
  • $wgBlockTargetMigrationStage (введено в 1.42)ipblocks table schema migration stage, for normalizing ipb_address field and adding the block_target table.
  • $wgBotPasswordsCluster (устарело в 1.42)Cluster name for the bot_passwords table
  • $wgBotPasswordsDatabase (устарело в 1.42)Database name for the bot_passwords table
  • $wgCascadingRestrictionLevels Restriction levels that can be used with cascading protection
  • $wgDeleteRevisionsLimit – Если количество правок в истории больше этого параметра, для её удаления требуются права bigdelete.
  • $wgEnableBotPasswords Whether to enable bot passwords
  • $wgEnableMultiBlocks (введено в 1.42)If this is false, the number of blocks of a given target is limited to only 1.
  • $wgEnablePartialBlocks (удалено в 1.35)Allow partial blocks to be created
  • $wgEnablePartialActionBlocks Flag to enable partial blocks against performing certain actions.
  • $wgHideIdentifiableRedirects Protects user's privacy when doing redirects
  • $wgImplicitRights (введено в 1.41)A list of implicit rights, in addition to the ones defined by the core.
  • $wgNamespaceProtection Which namespaces can be edited by whom?
  • $wgNonincludableNamespaces Use this to deny inclusion of pages from specific namespaces.
  • $wgPutIPinRC Log IP addresses in the recentchanges table.
  • $wgQueryPageDefaultLimit Integer defining default number of entries to show on query pages
  • $wgRestrictionLevels – Набор ключей доступа, которые можно выбрать на странице «Защита страницы».
  • $wgRestrictionTypes Actions that can be restricted
  • $wgSemiprotectedRestrictionLevels Restriction levels that are considered "semi-protected"
  • $wgSoftBlockRanges IP ranges that should be considered soft-blocked (anon-only, account creation allowed)
  • $wgSpamRegex – Шаблон регулярного выражения, который, если содержимое страницы соответствует ему, останавливает сохранение страницы.
  • $wgSummarySpamRegex – Действует аналогично $wgSpamRegex для описаний правок.
  • $wgSysopEmailBans (удалено в 1.35) – Позволяет администраторам блокировать доступ участников к функции Special:Emailuser.
  • $wgTempAccountCreationThrottle (введено в 1.42)Number of temporary accounts each IP address may create per specified period(s).

See Руководство:Ограничение доступа for more methods and settings concerning access. See also Руководство:Права пользователя for more information about $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups, etc.

See User Access for User Access settings.

Безопасность

  • $wgAllowCrossOrigin Allow anonymous cross origin requests.
  • $wgAllowUserCssPrefs Allow user preferences implemented in CSS.
  • $wgAllowUserCss – Разрешает использовать пользовательские Cascading Style Sheets (CSS).
  • $wgAllowUserJs – Позволяет включить или выключить пользовательские страницы с кодом JavaScript
  • $wgApiFrameOptions Control framing of api pages.
  • $wgBreakFrames Break out of framesets. Это может быть использовано для предотвращения обрамления внешнего сайта рекламой.
  • $wgCSPFalsePositiveUrls Controls what URLs to ignore in upcoming Content-Security-Policy feature's reporting.
  • $wgCSPHeader Controls Content-Security-Policy header [Experimental]
  • $wgCSPReportOnlyHeader Controls Content-Security-Policy-Report-Only header [Experimental]
  • $wgEditPageFrameOptions Control framing of wiki pages globally.
  • $wgHKDFAlgorithm Algorithm for HMAC-based key derivation function (fast, cryptographically secure random numbers).
  • $wgHKDFSecret Secret for HMAC-based key derivation function (fast, cryptographically secure random numbers).
  • $wgRestAllowCrossOriginCookieAuth Allows authenticated cross-origin requests to the REST API with session cookies.
  • $wgSecretKey This should always be customized to a secret, unique string in LocalSettings.php .
  • $wgSessionInsecureSecrets Allows MediaWiki to work at the cost of storing sensitive session data insecurely.
  • $wgSessionSecret Secret for session storage.
  • $wgUseSiteCss – Использовать в вики-проекте Cascading Style Sheets [каскадные таблицы стилей] (CSS)
  • $wgUseSiteJs Use the site's JavaScript page

Куки

  • $wgCacheVaryCookies – Список cookie, которые изменяют кеш.
  • $wgCookieDomain – Явный домен в файлах cookie для входа в систему.
  • $wgCookieExpiration – Количество секунд до истечения срока действия файлов cookie HTTP. Вы можете переопределить это для «держать меня в системе» куки с $ExtendedLoginCookieExpiration
  • $wgCookieHttpOnly Set the httpOnly flag on all cookies set by MediaWiki (to prevent access from JavaScript).
  • $wgCookiePath Explicitly declared "path" for cookies at the cookie domain
  • $wgCookiePrefix Custom cookie prefix.
  • $wgCookieSameSite The SameSite cookie attribute used for login cookies.
  • $wgCookieSecure Whether cookies are secured.
  • $wgCookieSetOnAutoblock Determines whether to set a cookie when a user is autoblocked. Doing so means that a blocked user, even after logging out and moving to a new IP address, will still be blocked.
  • $wgCookieSetOnIpBlock Determines whether to set a cookie when an IP user is blocked. Doing so means that a blocked user, even after moving to a new IP address, will still be blocked.
  • $wgDisableCookieCheck (удалено в 1.42)Disables session cookies
  • $wgExtendedLoginCookieExpiration – Если не ноль, длительность в секундах, чтобы использовать для сессий "Оставаться в системе"; 0 означает, что пока браузер не будет закрыт. Если ноль, используется $wgCookieExpiration
  • $wgSessionName Override to customize the session name.
  • $wgUseSameSiteLegacyCookies (удалено в 1.42)Send a legacy cookie with an ss0- prefix when SameSite=None is sent.

Профилирование, тестирование и отлаживание

Отлаживание

См. также: Руководство:Как отлаживать

Профилирование

Поиск

Edit user interface

Настройка скриптов обслуживания

Свежие правки, новые страницы, список наблюдения и история

См. также Справка:Свежие правки и $wgDefaultUserOptions .

Лента

  • $wgFeed – Включить или выключить ведение трансляций (например, RSS и Atom в свежих правках, новых страницах).
  • $wgAdvertisedFeedTypes Feed types that should be provided by default.
  • $wgFeedCacheTimeout Minimum timeout for cached Recentchanges feed, in seconds.
  • $wgFeedClasses Available feeds objects.
  • $wgFeedDiffCutoff When generating Recentchanges RSS/Atom feed, diffs will not be generated for pages larger than this size.
  • $wgFeedLimit Set maximum number of results to return in syndication feeds (RSS, Atom) for e.g. Recentchanges, Newpages.
  • $wgOverrideSiteFeed Override the site's default rss/atom feed that appears on every page.


Авторское право

Импорт/Экспорт

Расширения

Категории

Журналирование

  • $wgActionFilteredLogs – Список типов журналов, которые можно отфильтровать по типам действий
  • $wgFilterLogTypes Show/hide links on Special:Log will be shown for these log types.
  • $wgLogActionsHandlers То же, что и в $wgLogActions , но значения содержат функции-обработчики.
  • $wgLogActions – Перечисляет строки-ключи сообщений, используемых для форматирования находящихся в журналах событий каждого типа и действий.
  • $wgLogHeaders Lists the message key string for descriptive text to be shown at the top of each log type.
  • $wgLogNames Lists the message key string for each log type.
  • $wgLogRestrictions – Ограничивает доступ к журналам для участников, не имеющих указанные права.
  • $wgLogTypes List of log types.
  • $wgNewUserLog – Включить журнал регистрации новых участников (Special:Log/newusers).
  • $wgPageCreationLog Whether to maintain a log of new page creations, which can be viewed at Special:Log/create.

Служебные страницы

Действия

  • $wgActions – Массив разрешённых значений параметра action для обычных страниц.

Политики для роботов

Ajax, Action API и REST API

Ajax

API

Оболочка и контроль процессов

HTTP-клиент

Задачи

Вики-ферма

Разные настройки

См. также