2020-12-28 17:21:15 +01:00
< ? php
# This file was automatically generated by the MediaWiki 1.35.1
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# https://www.mediawiki.org/wiki/Manual:Configuration_settings
# Protect against web entry
if ( ! defined ( 'MEDIAWIKI' ) ) {
exit ;
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
2021-01-09 17:40:13 +01:00
$wgSitename = " CoLa Wissensdatenbank " ;
$wgMetaNamespace = " CoLa_Wissensdatenbank " ;
2020-12-28 17:21:15 +01:00
## 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 = " " ;
## The protocol and server name to use in fully-qualified URLs
2021-02-15 12:08:26 +01:00
# DNS Based Config
2021-02-26 14:42:39 +01:00
$wgServer = " https://wiki.rd13server.de " ;
2021-02-15 12:08:26 +01:00
# IP Based Config
2021-02-26 14:42:39 +01:00
#$wgServer = "http://192.168.178.5:8090";
2021-02-15 12:08:26 +01:00
2021-02-26 14:42:39 +01:00
$wgForceHTTPS = true ;
2021-02-15 12:08:26 +01:00
# Fix to solve net::ERR_HTTP2_PROTOCOL_ERROR 200 in Browsers other than Firefox in Desktops
$wgDisableOutputCompression = true ;
#$wgInternalServer = '192.168.178.6';
2020-12-28 17:21:15 +01:00
2021-01-09 18:26:24 +01:00
# Add Trusted Proxys
2021-02-15 12:08:26 +01:00
####################
2021-01-09 18:26:24 +01:00
$wgUseCdn = true ;
$wgCdnServers = array ();
2021-02-15 12:08:26 +01:00
$wgCdnServers [] = " 192.168.178.6 " ;
# Use Squid
#$wgUseSquid = true;
#$wgSquidServers = array();
#$wgSquidServers[] = "192.168.178.6";
2021-01-09 18:26:24 +01:00
2021-02-26 14:42:39 +01:00
# CORS Settings
#$wgCrossSiteAJAXdomains = [
# '*'
#];
2020-12-28 17:21:15 +01:00
## The URL path to static resources (images, scripts, etc.)
$wgResourceBasePath = $wgScriptPath ;
## The URL paths to the logo. Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
2021-01-09 16:41:32 +01:00
$wgLogos = [ '1x' => " $wgResourceBasePath /resources/assets/Wiki_Logo.png " ];
2020-12-28 17:21:15 +01:00
## UPO means: this is also a user preference option
$wgEnableEmail = true ;
$wgEnableUserEmail = true ; # UPO
2021-01-09 17:18:37 +01:00
$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
];
2020-12-28 17:50:55 +01:00
$wgEmergencyContact = " RD13Soft@gmail.com " ;
$wgPasswordSender = " RD13Soft@gmail.com " ;
2020-12-28 17:21:15 +01:00
$wgEnotifUserTalk = true ; # UPO
$wgEnotifWatchlist = true ; # UPO
$wgEmailAuthentication = true ;
## Database settings
$wgDBtype = " mysql " ;
2021-01-02 10:03:34 +01:00
$wgDBserver = " database " ;
$wgDBname = " rd13mediawikidb " ;
2020-12-28 17:21:15 +01:00
$wgDBuser = " wikiuser " ;
2021-01-02 10:03:34 +01:00
$wgDBpassword = " mwdbpw " ;
2020-12-28 17:21:15 +01:00
# 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:
2021-04-22 14:15:13 +02:00
$wgEnableWriteAPI = true ; // Enable the API
2020-12-28 17:21:15 +01:00
$wgEnableUploads = true ;
$wgUseImageMagick = true ;
$wgImageMagickConvertCommand = " /usr/bin/convert " ;
2021-04-22 14:15:13 +02:00
$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' ];
2020-12-28 17:21:15 +01:00
# 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 " ;
2021-01-09 17:40:13 +01:00
$wgSecretKey = " 1c48a35b70beac25438b7712971ad16055017925636173b2bbcafc355170cfd3 " ;
2020-12-28 17:21:15 +01:00
# 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
2021-01-09 17:40:13 +01:00
$wgUpgradeKey = " d1afea5946b0a23b " ;
2020-12-28 17:21:15 +01:00
## 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.
2021-04-22 14:15:13 +02:00
2020-12-28 17:21:15 +01:00
# Add more configuration options below.
2021-04-22 14:15:13 +02:00
#######################################
2020-12-28 17:21:15 +01:00
2021-02-26 14:42:39 +01:00
#wfLoadExtension( 'ClipUpload' );
require_once " $IP /extensions/ClipUpload/ClipUpload.php " ;
$wgClipUP_Comment = " Discription goes here... " ;
2021-04-22 14:15:13 +02:00
$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 ;
2021-04-22 17:46:06 +02:00
$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.
2021-04-23 16:50:48 +02:00
# Category Tree
###############
$wgCategoryTreeSidebarRoot = 'Category:Hauptseite' ;
2021-05-05 16:09:18 +02:00
$wgCategoryTreeForceHeaders = true ;
# Depth of tree per TreeMode
$wgCategoryTreeMaxDepth = [ 10 => 5 , 20 => 5 , 0 => 5 , 100 => 5 ];
2021-05-06 12:41:03 +02:00
$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
2021-05-06 16:25:08 +02:00
wfLoadExtension ( 'Maps' );
$egMapsDefaultService = 'leaflet' ;
$egMapsMapWidth = 800 ;
2021-05-06 16:27:49 +02:00
#$egMapsDefaultGeoService = 'google';
2021-05-06 12:41:03 +02:00
# 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
2021-05-06 16:25:08 +02:00
#$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