Jump to content

Manual:Definições de configuração

From mediawiki.org
This page is a translated version of the page Manual:Configuration settings and the translation is 78% complete.
Outdated translations are marked like this.

Este é um índice de todas as definições de configuração vigentes e mantidas no arquivo MainConfigSchema.php (ou no $2 antes do MediaWiki 1.39).

Jamais edite o MainConfigSchema.php; antes, adicione as linhas ao LocalSettings.php e modifique-as lá sempre que necessário.

Não encontrou uma definição de configuração aqui? Verifique se ela está definida no MainConfigSchema.php. É possível que a variável esteja documentada lá.

Definições removidas em versões do MediaWiki anteriores à 1.39 não são mais listadas aqui. Utilize a caixa de pesquisa para encontrar a página correspondente no manual (p. ex.: Manual:$wgAllowAnonymousMinor ).
Listadas em ordem alfabética | Listadas por função | Category:Definições de configuração do MediaWiki

Definições gerais

Objetos globais

  • $wgAutoloadLocalClasses Array mapping class names to filenames, for autoloading.
  • $wgConf – Cria um objeto de configuração do site. Não é muito usado em uma instalação padrão.

URLs do servidor e caminho de arquivos

Veja também as definições para o caminho de envio de arquivos e imagens.

Veja também as definições para o caminho dos temas.

Arquivos e envio de arquivos

Os envios precisam ser configurados especialmente para serem seguros.

Envios compartilhados

Estas definições são mantidas para compatibilidade com versões anteriores. Veja $wgForeignFileRepos para a nova definição ou $wgUseInstantCommons se você precisar apenas de acesso de leitura às imagens no Commons.

Tipos MIME

Atenção Atenção: ↑Essa não é uma definição de configuração, mas uma variável de estado global. Ela deve ser usada somente pelo thumb.php !

Veja também: Manual:MIME type detection

Imagens

  • $wgCustomConvertCommand Use another resizing converter, e.g. GraphicMagick.
  • $wgEnableAutoRotation Whether to enable image auto-rotation based on EXIF information
  • $wgExiftool – Caminho para o binário exiftool. Usado para troca de perfil ICC sem perdas.
  • $wgExiv2Command Path to the exiv2 executable.
  • $wgGalleryOptions Default settings for the ‎<gallery> tag.
  • $wgIgnoreImageErrors If true, inline scaled images will still produce ‎<img> tags ready for output instead of showing an error message.
  • $wgImageLimits A list of user-selectable limits for the image thumbnail size on image description pages.
  • $wgJpegQuality When scaling a JPEG thumbnail, this is the quality we request from the backend.
  • $wgJpegTran Path to jpegtran, for lossless JPEG rotation.
  • $wgMaxImageArea Don't thumbnail an image if it will use too much working memory.
  • $wgMediaHandlers Plugins for media file type handling.
  • parâmetros para o caminho do envio
  • $wgTrustedMediaFormats List of trusted media-types and MIME types.

Veja também: Manual:Configuring file uploads

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

Definições de miniatura

Antivírus

Definições de e-mail

Veja também Acesso do Usuário: $wgEmailConfirmToEdit

Definições de notificação de e-mail (Enotif)

As notificações para cada usuário são definidas nas opções. É possível alterar os padrões via $wgDefaultUserOptions .
  • $wgEnotifFromEditor Whether to make email notifications appear to come from the user who makes the edit
  • $wgEnotifImpersonal (removido na 1.45)Send a generic mail instead of a personalised mail for each user.
  • $wgEnotifMaxRecips (removido na 1.45)Maximum number of users to mail at once when using impersonal mail.
  • $wgEnotifMinorEdits – Defina como true para permitir o envio de notificação por e-mail também para edições marcadas como edições menores.
  • $wgEnotifRevealEditorAddress Set to true to insert the page editor's email address into the email notifications Reply-To address
  • $wgEnotifUseRealName Use real name instead of username in email "from" field.
  • $wgEnotifUserTalk Enable email notifications for edits on users' talk pages.
  • $wgEnotifWatchlist – Defina como true para permitir a notificação por e-mail para páginas vigiadas.
  • $wgUsersNotifiedOnAllChanges – Array de nomes de usuário que receberão um e-mail de notificação para cada mudança que ocorre em uma wiki.

Definições de banco de dados

Definições do LoadBalancer

Específicas do MySQL

  • $wgDBTableOptions – Opções de tabela do MySQL para usar durante a instalação ou atualização.
  • $wgSQLMode – Valor para o parâmetro MySQL sql_mode

Específicas do PostgreSQL

  • $wgDBport – Porta da base de dados. Usado apenas pelo PostgreSQL.

Específicas do SQLite

Definições de banco de dados compartilhado

Handlers de conteúdo e armazenamento

Performance hacks and limits

Cache

Página principal: Manual:Caching
Veja Interwiki para definições do cache interwiki.

File Cache

Definições para o cache de arquivos no servidor.

Message Cache

Parser Cache

Memcached settings

Definições para configurar o armazenamento de objetos baseado em memória Memcached (se estiver em uso) docs/memcached.md possui mais detalhes.

Cache WAN

HTTP proxy (CDN) settings

Estas definições configuram o MediaWiki ao usar um servidor proxy HTTP de cache. Elas se aplicam ao armazenamento em cache usando o Varnish e também o 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 – Tempo limite de cache para o CDN quando uma resposta é conhecida como errada ou incompleta (devido ao carregamento)
  • $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 – Nome do servidor interno mais conhecido como Squid, se for diferente de $wgServer .
  • $wgSquidPurgeUseHostHeader (removido na 1.42)Whether to use a Host header in purge requests sent to the proxy servers configured in $wgSquidServers.
  • $wgUseCdn Enable/disable page view caching.
  • $wgUseESI (obsoleto na versão 1.33)If you run Squid3 with ESI support, enable this.
  • $wgUsePrivateIPs Whether private X-Forwarded-For IPs should be accepted
  • $wgVaryOnXFP Whether to add X-Forwarded-Proto to the Vary header for API requests and RSS/Atom feeds.

Expurgo do multicast HTCP

Definições de idioma, região e codificação de caracteres

Definições de fuso horário

Específicas de alguns idiomas

inglês
  • $wgAmericanDates Use 'mdy' instead of 'dmy' as the default date format, e.g. 'May 12' instead of '12 May'.
árabe/hindi
  • $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.

Formato de saída e definições de tema

Saída

Temas

ResourceLoader

Veja Resource Loader para mais informações.

Page titles and redirects

Espaços nominais

Compatibilidade com dispositivos móveis

Ligações interwiki e websites

Interwiki cache

Veja interwiki cache para mais informações.

Analisador

HTML

  • $wgRawHtml Allow raw, unchecked HTML in ‎<html>...‎</html> sections.
  • $wgTidyConfig – Configuração da ferramenta de pós-processamento HTML para usar para corrigir o código HTML inválido.

Estatísticas e análise de conteúdo

  • $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).
  • $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.

Contas de usuário e autenticação

Authentication

Direitos de usuário, controle de acessos e monitoramento

Acesso

Bloqueios, banimentos e outras definições relacionadas.

Veja Manual:Preventing access para mais métodos e definições relacionadas a acessos. Veja também Manual:Direitos de usuário para mais informações sobre $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups e outros.

Veja as definições de acesso de usuário.

Security

Cookies

Profiling, testing and debugging

Depuração

Veja também: Manual:Como depurar

Profiling

Edit user interface

Scripts de manutenção

Mudanças recentes, páginas novas, páginas vigiadas e histórico

Feed

  • $wgFeed Toggle syndication feeds (RSS, Atom e.g. Recentchanges, Newpages) on and off.
  • $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.

Import/Export

Extensões

Category

Logging

Páginas especiais

Actions

  • $wgActions – Arranjo de valores permitidos para o parâmetro action em páginas normais.

Políticas de robôs

Ajax, Action API e REST API

Ajax

API

Shell and process control

HTTP client

Jobs

Wikifazendas

Miscelânea

Ver também