Page MenuHomeDevCentral
Paste P325

config/test.yaml
ArchivedPublic

Authored by dereckson on Apr 20 2023, 00:25.
Tags
None
Referenced Files
F2207657: config/test.yaml
Apr 20 2023, 00:25
Subscribers
None
# -------------------------------------------------------------
# MediaWiki farm
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2018-03-26
# -------------------------------------------------------------
# -------------------------------------------------------------
# Instances
#
# :: host => database map for the main instance list
# :: database => vhosts map for the aliases
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
instances:
agora.nasqueron.org: nasqueron_wiki
arsmagica.espace-win.org: arsmagica
utopia.espace-win.org: utopia
www.wolfplex.org: wolfplexdb
instances_aliases:
wolfplexdb:
- www.wolfplex.be
- wiki.wolfplex.org
- wiki.wolfplex.be
# -------------------------------------------------------------
# Databases map
#
# Sometimes, legacy databases aren't the most natural names.
#
# You can then map an alias for the database,
# to use in the configuration.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
database_map:
agora: nasqueron_wiki
wolfplex: wolfplexdb
# -------------------------------------------------------------
# MediaWiki settings
#
# :: MediaWiki core
# :: MediaWiki extensions
#
# Use default to provide a base default value to every wiki.
# Then, it can be superseded specifying the wiki name
# and another value.
#
# By default, default values (from MediaWiki code or from the
# default key) are replaced by values set.
#
# If you need a merge instead, prepend the key with a '+'.
#
# Yaml aliases allow to enable or disable a setting everywhere
# in one line.
#
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
aliases:
- &enabled
default: true
- &disabled
default: false
settings:
# -----------------------------------------------------------
# MediaWiki core
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
wgAllowTitlesInSVG: *enabled
wgDBprefix:
default: ''
# Legacy installations
arsmagica: arsm_
utopia: wiki_
wolfplex: mw_ # this database is shared
wgDefaultSkin:
default: vector
agora: timeless
wgEnableCreativeCommonsRdf: *enabled
wgEnableDublinCoreRdf: *enabled
wgEnableUploads:
default: false
agora: true
wolfplex: true
wgEnotifUserTalk: *enabled
wgEnotifWatchlist: *enabled
wgExtraNamespaces:
wolfplex:
320: Bulletin
321: Discussion_Bulletin
322: Event
323: Discussion_Event
wgUseInstantCommons: *enabled
+wgFileExtensions:
default:
- svg
wgLanguageCode:
default: en
arsmagica: fr
utopia: fr
wolfplex: fr
wgLocalInterwikis:
agora:
- agora
arsmagica:
- arsm
- arsmagica
utopia:
- utopia
wolfplex:
- wolfplex
wgLogo:
default: /images/b/bc/Wiki.png
agora: 'https://assets.nasqueron.org/logos/logo-main-133px.png'
arsmagica: /images/3/33/ArsMagica.png
wolfplex: /img/logo135.png
utopia: /img/BoatDesaturedBlueUtopiaIcon_135x135.png
wgMetaNamespace:
default: false
utopia: Utopia
wolfplex: Wolfplex
+wgNamespacesWithSubpages:
wolfplex:
0: true # NS_MAIN
320: true #
agora:
0: true # NS_MAIN
wgPasswordSender:
default: mediawiki-saas-no-reply@nasqueron.org
wgRestrictDisplayTitle:
default: true
wolfplex: false
wgSitename:
default: Wiki
agora: 'Nasqueron Agora'
arsmagica: 'Ars Magica'
utopia: Utopia
wolfplex: Wolfplex
wgSVGConverter:
default: rsvg
wgUseFileCache: *disabled
wgUseGzip: *enabled
wgUseImageMagick: *enabled
wgUsePathInfo: *enabled
saasExtraGroupPermissions:
default:
'*':
edit: false
createaccount: false
sysop:
deletelogentry: true
deleterevision: true
+utopia:
confirmed:
autoconfirmed: true
upload: true
saasLicense:
default: 'CC-BY 4.0'
utopia: 'CC-BY-NC-SA 3.0' # T1376
saasUrlScheme:
default: wiki
agora: root
arsmagica: root
# -------------------------------------------------------------
# Logging
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
wgMWLoggerDefaultSpi:
class: \MediaWiki\Logger\MonologSpi
args:
-
loggers:
'@default':
processors:
- wiki
- psr
- web
- introspection
handlers:
- stream
processors:
wiki:
class: \MediaWiki\Logger\Monolog\WikiProcessor
psr:
class: \Monolog\Processor\PsrLogMessageProcessor
web:
class: \Monolog\Processor\WebProcessor
introspection:
class: \Monolog\Processor\IntrospectionProcessor
handlers:
stream:
class: \Monolog\Handler\StreamHandler
args:
- /var/log/mediawiki/error.log
formatter: line
formatters:
line:
class: \Monolog\Formatter\LineFormatter
# -------------------------------------------------------------
# ContactPage extension
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
wgContactConfig:
wolfplex:
default:
RecipientUser: Spike
SenderEmail: null
SenderName: 'Contact Form on Wolfplex'
RequireDetails: false
IncludeIP: false
RLModules: { }
RLStyleModules: { }
AdditionalFields:
Text:
label-message: emailmessage
type: textarea
required: true
# -------------------------------------------------------------
# Packs of extensions
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
saasUseScribunto:
default: false
agora: true
wolfplex: true
# -------------------------------------------------------------
# Settings override and expansion
#
# :: Overrides — By default, PHP merge array strategy keep old
# values already defined and add only new ones.
#
# Instead, the default values will be overridden
# by the ones provided.
#
# Map is override setting => base setting
#
# :: Expansions — The idea is to avoid a lot of repetition
# for group of linked settings always set in the
# same way. Default values will be merged.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
settings_override:
saasExtraGroupPermissions: wgGroupPermissions
settings_expansion:
saasLicense:
'CC-BY 4.0':
wgRightsUrl: 'http://creativecommons.org/licenses/by/4.0/'
wgRightsText: 'Creative Commons Attribution 4.0 International License'
wgRightsIcon: 'https://i.creativecommons.org/l/by/4.0/88x31.png'
'CC-BY-NC-SA 3.0':
wgRightsUrl: 'https://creativecommons.org/licenses/by-nc-sa/3.0/'
wgRightsText: 'Attribution-NonCommercial-ShareAlike 3.0 Unported'
wgRightsIcon: 'https://licensebuttons.net/l/by-nc-sa/3.0/88x31.png'
saasUrlScheme:
root:
wgArticlePath: /$1
wgScriptPath: ''
wiki:
wgArticlePath: /wiki/$1
wgScriptPath: /w
saasUseScribunto:
'false': { }
'true':
wgScribuntoDefaultEngine: luastandalone
wgScribuntoUseGeSHi: true
wgScribuntoUseCodeEditor: true
+wgDefaultUserOptions:
usebetatoolbar: true
# -------------------------------------------------------------
# Extensions and skins to load
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
extensions:
default:
- CategoryTree
- Cite
- Gadgets
- ParserFunctions
- Poem
+wolfplex:
- ContactPage
- WolfplexMessages
extensions_expansion:
saasUseScribunto:
- WikiEditor
- SyntaxHighlight_GeSHi
- CodeEditor
- Scribunto
skins:
default:
- MonoBook
- Vector
- Timeless