ansible/roles/mediawiki/templates/LocalSettings.php.j2

116 lines
4.2 KiB
Plaintext
Raw Normal View History

2021-02-02 19:27:37 +01:00
<?php
## {{ ansible_managed }}
$wgSitename = "{{ mediawiki_sitename }}";
$wgScriptPath = "/w";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;
$wgResourceBasePath = $wgScriptPath;
$wgEnableEmail = true;
$wgEnableUserEmail = true;
$wgEmergencyContact = "{{ mediawiki_email }}";
$wgPasswordSender = "{{ mediawiki_email }}";
## For a detailed description of the following switches see
## http://www.mediawiki.org/wiki/Extension:Email_notification
## and http://www.mediawiki.org/wiki/Extension:Email_notification
## There are many more options for fine tuning available see
## /includes/DefaultSettings.php
## UPO means: this is also a user preference option
$wgEnotifUserTalk = true; # UPO
$wgEnotifWatchlist = true; # UPO
$wgEmailAuthentication = true;
## Database secrets managed outside Ansible
require 'LocalSettings_secrets.php';
## Shared memory settings
2021-02-28 04:10:00 +01:00
$wgMainCacheType = CACHE_ACCEL;
2021-02-02 19:27:37 +01:00
$wgMemCachedServers = array();
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
# $wgHashedUploadDirectory = false;
# to work with safe mode (as by https://www.mediawiki.org/wiki/Safe_mode)
# $wgFileStore['deleted']['hash'] = 0;
# $wgLocaltimezone = "Europe/Berlin";
# generate Thumbs on _every_ client request (NOTE this is a bad idea)
# $wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";
## If you have the appropriate support software installed
## you can enable inline LaTeX equations:
$wgUseTeX = false;
$wgLocalInterwiki = $wgSitename;
$wgLanguageCode = "de";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
$wgDefaultSkin = 'vector';
$wgLogo = '/w/images/3/3b/Ccchb_wiki.png';
## 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.
$wgEnableCreativeCommonsRdf = true;
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "http://www.gnu.org/copyleft/fdl.html";
$wgRightsText = "GNU Free Documentation License 1.2";
$wgRightsIcon = "${wgScriptPath}/skins/common/images/gnu-fdl.png";
# $wgRightsCode = "gfdl"; # Not yet used
$wgFileExtensions = [ 'png', 'gif', 'jpg', 'jpeg', 'webp', 'svg', 'pdf', 'ai' ];
{% for extension in mediawiki_extensions %}
wfLoadExtension( "{{ extension }}" );
{% endfor %}
{% for skin in mediawiki_skins %}
wfLoadSkin( "{{ skin }}" );
{% endfor %}
$wgServer = "https://wiki.ccchb.de";
$wgNamespacesWithSubpages[NS_MAIN] = true;
$wgMFDefaultSkinClass = 'SkinMinerva';
$wgDiff3 = "/usr/bin/diff3";
$wgSVGConverter = 'rsvg';
$wgRestrictionLevels[] = 'legal';
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['writeapi'] = true;
$wgGroupPermissions['vorstand']['legal'] = true;
$wgCaptchaClass = 'QuestyCaptcha';
$wgCaptchaQuestions[] = array( 'question' => 'Die Antwort auf die Frage nach dem Leben, dem Universum und allem?', 'answer' => '42' );
$wgCaptchaQuestions[] = array( 'question' => 'Wie lautet der Kurzname dieses Vereins?', 'answer' => 'CCCHB' );
$wgCaptchaQuestions[] = array( 'question' => 'Gib einfach das Wort Passion ein (kleingeschrieben):', 'answer' => 'passion' );
$wgCaptchaQuestions[] = array( 'question' => 'Gib bitte Fünfhundertsiebenundsechzig als Zahl ein:', 'answer' => '567' );
$wgCaptchaQuestions[] = array( 'question' => 'An welchem Wochentag treffen wir uns regelmäßig?', 'answer' => 'Dienstag' );
$wgCaptchaQuestions[] = array( 'question' => 'Der erste Congress im CCH (2012)', 'answer' => '29c3' );
$wgCaptchaQuestions[] = array( 'question' => 'Der letzte Congress im bcc (2011)', 'answer' => '28c3' );
$wgCaptchaQuestions[] = array( 'question' => 'Wie kürzt man Erfahrungsaustauschkreis in 4 Buchstaben ab? (alles großgeschrieben)', 'answer' => 'ERFA' );
$wgShowExceptionDetails = true;
$wgShowDBErrorBacktrace = true;