From e24a4c2665828be002c1378bbb7787f3bea3829c Mon Sep 17 00:00:00 2001 From: mb Date: Tue, 22 Aug 2023 17:32:05 +0200 Subject: [PATCH] adding a LocalSettings example --- wiki-to-print.LocalSettings.php.example | 211 ++++++++++++++++++++++++ 1 file changed, 211 insertions(+) create mode 100644 wiki-to-print.LocalSettings.php.example diff --git a/wiki-to-print.LocalSettings.php.example b/wiki-to-print.LocalSettings.php.example new file mode 100644 index 0000000..2b3cf08 --- /dev/null +++ b/wiki-to-print.LocalSettings.php.example @@ -0,0 +1,211 @@ + "/creative-crowds.svg" + +]; + +## UPO means: this is also a user preference option + +$wgEnableEmail = false; +$wgEnableUserEmail = true; # UPO + +$wgEmergencyContact = "apache@🌻.invalid"; +$wgPasswordSender = "apache@🌻.invalid"; + +$wgEnotifUserTalk = false; # UPO +$wgEnotifWatchlist = false; # UPO +$wgEmailAuthentication = true; + +## Database settings +$wgDBtype = "mysql"; +$wgDBserver = "localhost"; +$wgDBname = "wikidb"; +$wgDBuser = "wiki"; +$wgDBpassword = "XXX"; + +# MySQL specific settings +$wgDBprefix = ""; + +# MySQL table options to use during installation or update +$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary"; + +# Shared database table +# This has no effect unless $wgSharedDB is also set. +$wgSharedTables[] = "actor"; + +## Shared memory settings +$wgMainCacheType = CACHE_NONE; +$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 = array( 'png', 'gif', 'jpg', 'jpeg', 'doc', + 'xls', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx', + 'pptx', 'ps', 'odt', 'ods', 'odp', 'odg', 'svg' +); +$wgUploadSizeWarning = 5242880; +$wgMaxUploadSize = 5242880; + +# InstantCommons allows wiki to use images from https://commons.wikimedia.org +$wgUseInstantCommons = false; + +# Periodically send a pingback to https://www.mediawiki.org/ with basic data +# about this MediaWiki instance. The Wikimedia Foundation shares this data +# with MediaWiki developers to help guide future development efforts. +$wgPingback = true; + +# Site language code, should be one of the list in ./languages/data/Names.php +$wgLanguageCode = "en"; + +# Time zone +$wgLocaltimezone = "UTC"; + +## Set $wgCacheDirectory to a writable directory on the web server +## to make your wiki go slightly faster. The directory should not +## be publicly accessible from the web. +#$wgCacheDirectory = "$IP/cache"; + +$wgSecretKey = "XXX"; + +# 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 = "XXX"; + +## 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://www.gnu.org/copyleft/fdl.html"; +$wgRightsText = "GNU Free Documentation License 1.3 or later"; +$wgRightsIcon = "$wgResourceBasePath/resources/assets/licenses/gnu-fdl.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; + +# We need to give the group users write permission to the API for the visual editor to work +$wgGroupPermissions['user']['writeapi'] = true; + +# Enabled extensions. Most of the extensions are enabled by adding +# wfLoadExtension( 'ExtensionName' ); +# to LocalSettings.php. Check specific extension documentation for more details. +# The following extensions were automatically enabled: + +# wfLoadExtension( 'CodeEditor' ); +wfLoadExtension( 'VisualEditor' ); +wfLoadExtension( 'WikiEditor' ); +wfLoadExtension( 'CategoryTree' ); +wfLoadExtension( 'Cite' ); + +# Using ConfirmEdit for captcha at account creation +wfLoadExtensions([ 'ConfirmEdit', 'ConfirmEdit/QuestyCaptcha' ]); +$wgCaptchaQuestions = [ + 'In which city is the Varia server hosted? (only lowercase)' => 'rotterdam' +]; +$wgMainCacheType = CACHE_ANYTHING; +$wgCaptchaTriggers['edit'] = false; +$wgCaptchaTriggers['create'] = false; +$wgCaptchaTriggers['createtalk'] = false; +$wgCaptchaTriggers['addurl'] = false; +$wgCaptchaTriggers['createaccount'] = true; +$wgCaptchaTriggers['badlogin'] = false; + +# Using CreatePage +wfLoadExtension( 'CreatePage' ); +$wgCreatePageEditExisting = true; +#$wgCreatePageUseVisualEditor = true; + +# Embed etherpads +wfLoadExtension( 'EtherpadLite' ); +$wgEtherpadLiteDefaultPadUrl = "https://cc.vvvvvvaria.org/pad/p/"; +$wgEtherpadLiteUrlWhitelist = array($wgEtherpadLiteDefaultPadUrl); +##$wgEtherpadLiteDefaultWidth = "calc(100% - 4px)"; +##$wgEtherpadLiteDefaultHeight = "500px"; +$wgEtherpadLiteDefaultWidth = "400px"; +$wgEtherpadLiteDefaultHeight = "700px"; + +# Custom publishing namespace +define("NS_Pdf", 3000); +define("NS_PdfCSS", 3001); +$wgExtraNamespaces[NS_Pdf] = "Pdf"; +$wgExtraNamespaces[NS_PdfCSS] = "PdfCSS"; +$wgNamespacesWithSubpages[NS_Pdf] = true; +$wgNamespacesWithSubpages[NS_PdfCSS] = true; + +# We change the content model of the CSS namespace from the default WIKITEXT. +# The forces the CodeEditor to replace the VisualEditor for better legibility. +$wgNamespaceContentModels[NS_PdfCSS] = CONTENT_MODEL_CSS; + +# We need to force the VisualEditor to exist in our Pdf namespace. +$wgVisualEditorAvailableNamespaces = [ + 'Toward_a_Minor_Tech' => true +]; + +## Default skin: you can change the default skin. Use the internal symbolic +## names, e.g. 'vector' or 'monobook': +$wgDefaultSkin = 'vector'; + +# Enabled skins. +# The following skins were automatically enabled: +wfLoadSkin( 'MonoBook' ); +wfLoadSkin( 'Timeless' ); +wfLoadSkin( 'Vector' ); +wfLoadSkin( 'Citizen' ); + +# Custom settings +$wgAllowImageTag = true; +$wgAllowExternalImages = true; + +wfLoadExtension( 'SyntaxHighlight_GeSHi' ); + +# Running jobs instantly (not making a queue) +$wgJobRunRate = 1;