"$wgResourceBasePath/resources/assets/Wiki_Logo.png" ]; ## UPO means: this is also a user preference option $wgEnableEmail = true; $wgEnableUserEmail = true; # UPO $wgSMTP = [ 'host' => 'ssl://smtp.gmail.com', // outbox server of the email account 'IDHost' => 'gmail.com', 'port' => 465, 'username' => 'rd13soft@gmail.com', // user of the email account 'password' => 'podkvrdmlvyutlps', // app password of the email account 'auth' => true ]; $wgEmergencyContact = "RD13Soft@gmail.com"; $wgPasswordSender = "RD13Soft@gmail.com"; $wgEnotifUserTalk = true; # UPO $wgEnotifWatchlist = true; # UPO $wgEmailAuthentication = true; ## Database settings $wgDBtype = "mysql"; $wgDBserver = "database"; $wgDBname = "rd13mediawikidb"; $wgDBuser = "wikiuser"; $wgDBpassword = "mwdbpw"; # 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_ACCEL; $wgMemCachedServers = []; ## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableWriteAPI = true; // Enable the API $wgEnableUploads = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert"; $wgAllowJavaUploads = true; // Solves problem with Office 2007 and newer files (docx, xlsx, etc.) $wgGroupPermissions['user']['upload'] = true; // Allow regular users to upload files // Make sure that the file types you want to upload are allowed: $wgFileExtensions = [ 'png','gif','jpg','jpeg','doc','xls','pdf','ppt','tiff','bmp','docx','xlsx','pptx' ]; # InstantCommons allows wiki to use images from https://commons.wikimedia.org $wgUseInstantCommons = true; # 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 = false; ## 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. This should ideally be set to an English ## language locale so that the behaviour of C library functions will ## be consistent with typical installations. Use $wgLanguageCode to ## localise the wiki. $wgShellLocale = "C.UTF-8"; ## 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"; # Site language code, should be one of the list in ./languages/data/Names.php $wgLanguageCode = "de"; $wgSecretKey = "1c48a35b70beac25438b7712971ad16055017925636173b2bbcafc355170cfd3"; # 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 = "d1afea5946b0a23b"; ## 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 = ""; $wgRightsText = ""; $wgRightsIcon = ""; # 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; $wgGroupPermissions['*']['read'] = false; ## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'vector', 'monobook': $wgDefaultSkin = "timeless"; # Enabled skins. # The following skins were automatically enabled: wfLoadSkin( 'MonoBook' ); wfLoadSkin( 'Timeless' ); wfLoadSkin( 'Vector' ); # 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( 'CategoryTree' ); wfLoadExtension( 'Cite' ); wfLoadExtension( 'CiteThisPage' ); wfLoadExtension( 'CodeEditor' ); wfLoadExtension( 'ConfirmEdit' ); wfLoadExtension( 'Gadgets' ); wfLoadExtension( 'ImageMap' ); wfLoadExtension( 'InputBox' ); wfLoadExtension( 'Interwiki' ); wfLoadExtension( 'LocalisationUpdate' ); wfLoadExtension( 'MultimediaViewer' ); wfLoadExtension( 'Nuke' ); wfLoadExtension( 'OATHAuth' ); wfLoadExtension( 'ParserFunctions' ); wfLoadExtension( 'PdfHandler' ); wfLoadExtension( 'Poem' ); wfLoadExtension( 'Renameuser' ); wfLoadExtension( 'ReplaceText' ); wfLoadExtension( 'Scribunto' ); wfLoadExtension( 'SecureLinkFixer' ); wfLoadExtension( 'SpamBlacklist' ); wfLoadExtension( 'SyntaxHighlight_GeSHi' ); wfLoadExtension( 'TemplateData' ); wfLoadExtension( 'TextExtracts' ); wfLoadExtension( 'TitleBlacklist' ); wfLoadExtension( 'VisualEditor' ); wfLoadExtension( 'WikiEditor' ); # End of automatically generated settings. # Add more configuration options below. ####################################### #wfLoadExtension( 'ClipUpload' ); require_once "$IP/extensions/ClipUpload/ClipUpload.php"; $wgClipUP_Comment = "Discription goes here..."; $wgClipUP_MaxFileSize = "10000"; # MSUpload Extension #################### wfLoadExtension( 'MsUpload' ); # Options $wgMSU_useDragDrop = true; // Should the drag & drop area be shown? (Not set by default) $wgMSU_showAutoCat = true; // Files uploaded while editing a category page will be added to that category $wgMSU_checkAutoCat = true; // Whether the checkbox for adding a category to a page is checked by default $wgMSU_useMsLinks = false; // Insert links in Extension:MsLinks style? $wgMSU_confirmReplace = true; // Show the "Replace file?" checkbox $wgMSU_imgParams = 'thumb|none'; // Any image parameter(s), delimited by pipes, e.g., {width}px, left, right, center, none, border, frameless, frame, thumb etc. # PdfHandler Extension ###################### wfLoadExtension( 'PdfHandler' ); # Options $wgPdfProcessor = '/usr/bin/gs'; #$wgPdfPostProcessor = $wgImageMagickConvertCommand; // if defined via ImageMagick $wgPdfPostProcessor = '/usr/bin/convert'; // if not defined via ImageMagick $wgPdfInfo = '/usr/bin/pdfinfo'; $wgPdftoText = '/usr/bin/pdftotext'; #$wgGenerateThumbnailOnParse = true; // Could make Thumbnail creation if there are problems # Allow External Images from my own servers $wgAllowExternalImages = true; $wgAllowExternalImagesFrom = [ 'http://127.0.0.1/', 'https://cloud.rd13server.de/' ]; // MediaWiki 1.14+ # Support Video Files and external Video Sources ################################################ wfLoadExtension( 'EmbedVideo' ); $wgEmbedVideoAddFileExtensions = true; // Boolean - Enable or disable adding video/audio file extensions to the list of allowable files to be uploaded. $wgEmbedVideoEnableVideoHandler = true; // Boolean - Enable or disable the video media handlers for displaying embedded video in articles. $wgEmbedVideoEnableAudioHandler = true; // Boolean - Enable or disable the audio media handlers for displaying embedded audio in articles. #$wgEmbedVideoDefaultWidth = 480; // Integer - Globally override the default width of video players. When not set this uses the video service's default width which is typically 640 pixels. #$wgEmbedVideoMinWidth = 480; // Integer - Minimum width of video players. Widths specified below this value will be automatically bounded to it. $wgEmbedVideoMaxWidth = 1920; // Integer - Maximum width of video players. Widths specified above this value will be automatically bounded to it. $wgFFmpegLocation = '/usr/bin/ffmpeg'; // String - Set the location of the ffmpeg binary. $wgFFprobeLocation = '/usr/bin/ffprobe'; // String - Set the location of the ffprobe binary. # Category Tree ############### $wgCategoryTreeSidebarRoot = 'Category:Hauptseite'; $wgCategoryTreeForceHeaders = true; # Depth of tree per TreeMode $wgCategoryTreeMaxDepth = [10 => 5, 20 => 5, 0 => 5, 100 => 5]; $wgCategoryTreeDefaultMode = 10; # Math Formula extensions ########################## wfLoadExtension( 'Math' ); # Install instructions # run this command from wiki root maintanence e.g. /var/www/html/maintenance # php update.php # to update databes tables # Using Mathoid as a service from external Sources # It is possible to host the server by myself but it is a way more complex installation an still in beta state as of May 2021 // Set MathML as default rendering option $wgDefaultUserOptions['math'] = 'mathml'; $wgMathFullRestbaseURL = 'https://en.wikipedia.org/api/rest_'; $wgMathMathMLUrl = 'https://mathoid-beta.wmflabs.org/'; # Json Extension needed for Graph extension ########################################### wfLoadExtension( 'JsonConfig' ); # Adding Graph extension ######################### wfLoadExtension( 'Graph' ); # https://www.mediawiki.org/wiki/Extension:Graph # My be some files are missing and Modules need to be added unter Additional config setup # but i dont know how atm # Adding Maps Support ###################### # Uncomment after installing # Istalling with: all in wiki root html # curl https://getcomposer.org/composer-2.phar > composer.phar # mv composer.phar /usr/local/bin/composer # chmod +x /usr/local/bin/composer # COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~8.0 # composer update # composer update mediawiki/maps --no-dev -o # inside the wiki shell wfLoadExtension( 'Maps' ); $egMapsDefaultService = 'leaflet'; $egMapsDefaultGeoService = 'nominatim'; # Kartographer as a subcategory wfLoadExtension( 'Kartographer' ); # Global OpenStreetmap tile Server #$wgKartographerMapServer = 'https://tile.openstreetmap.org'; # Problem mit der Konfiguration von einem Externen Tile Server # MediaWiki implementiert nur seinen eigenen Tile Server mit einer Festen Syntax # Dies führt dazu das er immer osm-intl an die URL des Tile Server anhängt # Dies ist nicht zu entfernen. Mein Workaround den ich gefunden habe ist // als # DfltStyle anzugeben. Dies kann nur von dem Deutschen OSM Tile server Ignoriert werden. # Dieser kann aber nicht mit Pins umgehen. (evtl. eigenen Tile server Bauen der das alles kann) # In der Zwischenzeit ist das meine Lösung: # Doppel slash kann von dem Deutschen Open Street Map Server ignoriert werden $wgKartographerMapServer = 'https://a.tile.openstreetmap.de/'; $wgKartographerDfltStyle = '//'; ####################################### # Retina Bildschirme schicken noch ein @2x in der URL mit dies kann der Deutsche Tile Server auch noch nicht. # Zusatz Variable für die MediaWiki eigene Variante wird aber hier nicht benötigt. #$wgKartographerStyles = ["osm-intl","osm"]; # Adding Musical notation with score Notation ############################################# wfLoadExtension( 'Score' ); ########################################## # Some security risks check for updates # User could execute code through it if users are trustworthy there shouldnt be a problem ########################################## $wgScoreTrim = true; #$wgImageMagickConvertCommand = '/usr/bin/convert'; # already set for image upload $wgShellRestrictionMethod = 'firejail'; # For shell memory errors increase #$wgMaxShellMemory = xxxx; # Timedmedia Extension needed for Score and Video Support wfLoadExtension( 'TimedMediaHandler' ); #$wgFFmpegLocation = '/usr/bin/ffmpeg'; # already set under embedvideo #$wgMaxShellMemory = xxxx; # For performance issuse