diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-09-10 08:57:06 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-09-10 08:57:06 +0200 |
commit | b296d7987e5558b11bdf16dced7b1f139bea0499 (patch) | |
tree | bbbab8ccdec3c7ca116850a2558f498fb8a9ae4d /ansible/plays/templates/mw/LocalSettings.php | |
parent | 46934bb125c6b3fc53b1669cb5131f9c2f06ac0e (diff) | |
download | infra-b296d7987e5558b11bdf16dced7b1f139bea0499.tar.gz infra-b296d7987e5558b11bdf16dced7b1f139bea0499.tar.bz2 infra-b296d7987e5558b11bdf16dced7b1f139bea0499.tar.xz infra-b296d7987e5558b11bdf16dced7b1f139bea0499.zip |
o Moving mw and malabaricus to plays/.
Diffstat (limited to 'ansible/plays/templates/mw/LocalSettings.php')
-rw-r--r-- | ansible/plays/templates/mw/LocalSettings.php | 195 |
1 files changed, 195 insertions, 0 deletions
diff --git a/ansible/plays/templates/mw/LocalSettings.php b/ansible/plays/templates/mw/LocalSettings.php new file mode 100644 index 0000000..bb113cc --- /dev/null +++ b/ansible/plays/templates/mw/LocalSettings.php @@ -0,0 +1,195 @@ +<?php +# This file was automatically generated by the MediaWiki 1.27.4 +# installer. If you make manual changes, please keep track in case you +# need to recreate them later. + +# Protect against web entry +if ( !defined( 'MEDIAWIKI' ) ) { + exit; +} + +## Uncomment this to disable output compression +# $wgDisableOutputCompression = true; + +$wgSitename = "Trygvis's notes to self"; +$wgMetaNamespace = "Project"; + +## The URL base path to the directory containing the wiki; +## defaults for all runtime URL paths are based off of this. +## For more information on customizing the URLs +## (like /w/index.php/Page_title to /wiki/Page_title) please see: +## https://www.mediawiki.org/wiki/Manual:Short_URL +$wgScriptPath = "/w"; +$wgArticlePath = "/wiki/$1"; + +## The protocol and server name to use in fully-qualified URLs +$wgServer = "https://mw.trygvis.io"; + +## The URL path to static resources (images, scripts, etc.) +$wgResourceBasePath = $wgScriptPath; + +## The URL path to the logo. Make sure you change this from the default, +## or else you'll overwrite your logo when you upgrade! +$wgLogo = "$wgResourceBasePath/resources/assets/wiki.png"; + +## UPO means: this is also a user preference option + +$wgEnableEmail = true; +$wgEnableUserEmail = true; # UPO + +$wgEmergencyContact = "postmaster@trygvis.io"; +$wgPasswordSender = "postmaster@trygvis.io"; + +$wgEnotifUserTalk = true; # UPO +$wgEnotifWatchlist = true; # UPO +$wgEmailAuthentication = true; + +## Database settings +$wgDBtype = "postgres"; +$wgDBserver = "{{ mediawiki__wgDBserver }}"; +$wgDBname = "{{ mediawiki__wgDBname }}"; +$wgDBuser = "{{ mediawiki__wgDBuser }}"; +$wgDBpassword = "{{ mediawiki__wgDBpassword }}"; + +# Postgres specific settings +$wgDBport = "5432"; +$wgDBmwschema = "public"; + +## Shared memory settings +$wgMainCacheType = CACHE_ANYTHING; +$wgMemCachedServers = []; + +## To enable image uploads, make sure the 'images' directory +## is writable, then set this to true: +$wgEnableUploads = true; +#$wgUseImageMagick = true; +#$wgImageMagickConvertCommand = "/usr/bin/convert"; +$wgFileExtensions[] = 'pdf'; + +# InstantCommons allows wiki to use images from https://commons.wikimedia.org +$wgUseInstantCommons = true; + +## If you use ImageMagick (or any other shell command) on a +## Linux server, this will need to be set to the name of an +## available UTF-8 locale +$wgShellLocale = "en_US.utf8"; + +## Set $wgCacheDirectory to a writable directory on the web server +## to make your wiki go slightly faster. The directory should not +## be publically accessible from the web. +#$wgCacheDirectory = "$IP/cache"; + +# Site language code, should be one of the list in ./languages/data/Names.php +$wgLanguageCode = "en"; + +$wgSecretKey = "{{ mediawiki__wgSecretKey }}"; + +# Changing this will log out all existing sessions. +$wgAuthenticationTokenVersion = "1"; + +# Site upgrade key. Must be set to a string (default provided) to turn on the +# web installer while LocalSettings.php is in place +$wgUpgradeKey = "{{ mediawiki__wgUpgradeKey }}"; + +## For attaching licensing metadata to pages, and displaying an +## appropriate copyright notice / icon. GNU Free Documentation +## License and Creative Commons licenses are supported so far. +$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright +$wgRightsUrl = "https://creativecommons.org/publicdomain/zero/1.0/"; +$wgRightsText = "Creative Commons Zero (Public Domain)"; +$wgRightsIcon = "$wgResourceBasePath/resources/assets/licenses/cc-0.png"; + +# Path to the GNU diff3 utility. Used for conflict resolution. +$wgDiff3 = "/usr/bin/diff3"; + +# The following permissions were set based on your choice in the installer +$wgGroupPermissions['*']['createaccount'] = false; +$wgGroupPermissions['*']['edit'] = false; + +## Default skin: you can change the default skin. Use the internal symbolic +## names, ie 'vector', 'monobook': +$wgDefaultSkin = "vector"; + +# Enabled skins. +# The following skins were automatically enabled: + +wfLoadExtension( 'Scribunto' ); +$wgScribuntoDefaultEngine = 'luastandalone'; + +wfLoadExtension("SemanticScribunto"); +wfLoadExtension('WikiEditor'); +wfLoadExtension( 'CodeEditor' ); +# Enables link and table wizards by default but still allows users to +# disable them in preferences +$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1; + +# Displays the Preview and Changes tabs +$wgDefaultUserOptions['wikieditor-preview'] = 1; + +# Displays the Publish and Cancel buttons on the top right side +$wgDefaultUserOptions['wikieditor-publish'] = 1; + +$wgScribuntoUseCodeEditor = true; + +wfLoadSkin( 'MonoBook' ); +wfLoadSkin( 'Timeless' ); +wfLoadSkin( 'Vector' ); + +wfLoadExtension( 'Cite' ); +wfLoadExtension( 'ParserFunctions' ); + +# End of automatically generated settings. +# Add more configuration options below. + +# Debian specific generated settings +# Use system mimetypes +$wgMimeTypeFile = '/etc/mime.types'; +# Load legacy extensions +if ( is_file( "/etc/mediawiki-extensions/extensions.php" ) ) { + include "/etc/mediawiki-extensions/extensions.php"; +} +# Add a "powered by Debian" footer icon +$wgFooterIcons['poweredby']['debian'] = [ + "src" => "/w/resources/assets/debian/poweredby_debian_1x.png", + "url" => "https://www.debian.org/", + "alt" => "Powered by Debian", + "srcset" => + "/w/resources/assets/debian/poweredby_debian_1_5x.png 1.5x, " . + "/w/resources/assets/debian/poweredby_debian_2x.png 2x", +]; +# End Debian specific generated settings +# Add more configuration options below. + +$wgUseCategoryBrowser = true; + +// Define constants for my additional namespaces. +define("NS_CHIP", 3000); // This MUST be even. +define("NS_CHIP_TALK", 3001); // This MUST be the following odd integer. +define("NS_BOARD", 3002); // This MUST be even. +define("NS_BOARD_TALK", 3003); // This MUST be the following odd integer. + +enableSemantics( 'https://mw.trygvis.io/wiki/', true ); + +$smwgShowFactbox = SMW_FACTBOX_NONEMPTY; + +// Add "Chip" namespace +$wgExtraNamespaces[NS_CHIP] = "Chip"; +$wgExtraNamespaces[NS_CHIP_TALK] = "Chip_talk"; // Note underscores in the namespace name. +$wgContentNamespaces[] = NS_CHIP; +$smwgNamespacesWithSemanticLinks[NS_CHIP] = true; + +$wgExtraNamespaces[NS_BOARD] = "Board"; +$wgExtraNamespaces[NS_BOARD_TALK] = "Board_talk"; // Note underscores in the namespace name. +$wgContentNamespaces[] = NS_BOARD; +$smwgNamespacesWithSemanticLinks[NS_BOARD] = true; + +# https://www.mediawiki.org/wiki/Manual:$wgSMTP +$wgSMTP = array('host' => '10.0.3.1', 'auth' => false); + +wfLoadExtension( 'Interwiki' ); +// To grant sysops permissions to edit interwiki data +$wgGroupPermissions['sysop']['interwiki'] = true; +$wgEnableScaryTranscluding = true; + +$wgShowExceptionDetails = true; +$wgShowDBErrorBacktrace = true; |