Compare commits

..

No commits in common. "48c0d525f78f1e289b879764965253fcf73cfd7e" and "87258aa524028f4c659be3f0d2b0349e614ff760" have entirely different histories.

2 changed files with 80 additions and 81 deletions

View file

@ -33,13 +33,13 @@ In LocalSettings.php:
```php ```php
wfLoadExtension( 'Kartographer' ); wfLoadExtension( 'Kartographer' );
$wgKartographerMapServer = 'https://tiles.rd13server.de/styles'; $wgKartographerMapServer = 'https://tiles.rd13server.de';
$wgKartographerStyles = [ $wgKartographerStyles = [
'osm-bright', 'osm-bright',
'satellite-hybrid', 'satellite-hybrid',
]; ];
$wgKartographerDfltStyle = 'osm-bright'; $wgKartographerDfltStyle = 'osm-bright';
$wgKartographerSrcsetScales = [ 1 ]; $wgKartographerSrcsetScales = [ 1, 1.5, 2 ];
``` ```
### Schnelltest im Wiki ### Schnelltest im Wiki

View file

@ -11,8 +11,8 @@
# https://www.mediawiki.org/wiki/Manual:Configuration_settings # https://www.mediawiki.org/wiki/Manual:Configuration_settings
# Protect against web entry # Protect against web entry
if (!defined('MEDIAWIKI')) { if ( !defined( 'MEDIAWIKI' ) ) {
exit; exit;
} }
@ -46,7 +46,7 @@ $wgForceHTTPS = true;
error_reporting(0); error_reporting(0);
# Fix to solve net::ERR_HTTP2_PROTOCOL_ERROR 200 in Browsers other than Firefox in Desktops # Fix to solve net::ERR_HTTP2_PROTOCOL_ERROR 200 in Browsers other than Firefox in Desktops
$wgDisableOutputCompression = true; $wgDisableOutputCompression = true;
#$wgInternalServer = '192.168.178.6'; #$wgInternalServer = '192.168.178.6';
@ -71,7 +71,7 @@ $wgResourceBasePath = $wgScriptPath;
## The URL paths to the logo. Make sure you change this from the default, ## The URL paths to the logo. Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade! ## or else you'll overwrite your logo when you upgrade!
$wgLogos = ['1x' => "$wgResourceBasePath/resources/assets/Wiki_Logo.png"]; $wgLogos = [ '1x' => "$wgResourceBasePath/resources/assets/Wiki_Logo.png" ];
## UPO means: this is also a user preference option ## UPO means: this is also a user preference option
@ -125,7 +125,7 @@ $wgImageMagickConvertCommand = "/usr/bin/convert";
$wgAllowJavaUploads = true; // Solves problem with Office 2007 and newer files (docx, xlsx, etc.) $wgAllowJavaUploads = true; // Solves problem with Office 2007 and newer files (docx, xlsx, etc.)
$wgGroupPermissions['user']['upload'] = true; // Allow regular users to upload files $wgGroupPermissions['user']['upload'] = true; // Allow regular users to upload files
// Make sure that the file types you want to upload are allowed: // Make sure that the file types you want to upload are allowed:
$wgFileExtensions = ['png', 'gif', 'jpg', 'jpeg', 'svg', 'doc', 'xls', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx', 'pptx']; $wgFileExtensions = [ 'png','gif','jpg','jpeg','svg','doc','xls','pdf','ppt','tiff','bmp','docx','xlsx','pptx' ];
# InstantCommons allows wiki to use images from https://commons.wikimedia.org # InstantCommons allows wiki to use images from https://commons.wikimedia.org
$wgUseInstantCommons = true; $wgUseInstantCommons = true;
@ -223,52 +223,52 @@ $wgDefaultSkin = "timeless";
# Enabled skins. # Enabled skins.
# The following skins were automatically enabled: # The following skins were automatically enabled:
wfLoadSkin('MonoBook'); wfLoadSkin( 'MonoBook' );
wfLoadSkin('Timeless'); wfLoadSkin( 'Timeless' );
wfLoadSkin('Vector'); wfLoadSkin( 'Vector' );
# Enabled extensions. Most of the extensions are enabled by adding # Enabled extensions. Most of the extensions are enabled by adding
# wfLoadExtension( 'ExtensionName' ); # wfLoadExtension( 'ExtensionName' );
# to LocalSettings.php. Check specific extension documentation for more details. # to LocalSettings.php. Check specific extension documentation for more details.
# The following extensions were automatically enabled: # The following extensions were automatically enabled:
wfLoadExtension('CategoryTree'); wfLoadExtension( 'CategoryTree' );
wfLoadExtension('Cite'); wfLoadExtension( 'Cite' );
wfLoadExtension('CiteThisPage'); wfLoadExtension( 'CiteThisPage' );
wfLoadExtension('CodeEditor'); wfLoadExtension( 'CodeEditor' );
wfLoadExtension('ConfirmEdit'); wfLoadExtension( 'ConfirmEdit' );
wfLoadExtension('Gadgets'); wfLoadExtension( 'Gadgets' );
wfLoadExtension('ImageMap'); wfLoadExtension( 'ImageMap' );
wfLoadExtension('InputBox'); wfLoadExtension( 'InputBox' );
wfLoadExtension('Interwiki'); wfLoadExtension( 'Interwiki' );
wfLoadExtension('LocalisationUpdate'); wfLoadExtension( 'LocalisationUpdate' );
wfLoadExtension('MultimediaViewer'); wfLoadExtension( 'MultimediaViewer' );
wfLoadExtension('Nuke'); wfLoadExtension( 'Nuke' );
wfLoadExtension('OATHAuth'); wfLoadExtension( 'OATHAuth' );
wfLoadExtension('ParserFunctions'); wfLoadExtension( 'ParserFunctions' );
wfLoadExtension('PdfHandler'); wfLoadExtension( 'PdfHandler' );
wfLoadExtension('Poem'); wfLoadExtension( 'Poem' );
wfLoadExtension('Renameuser'); wfLoadExtension( 'Renameuser' );
wfLoadExtension('ReplaceText'); wfLoadExtension( 'ReplaceText' );
wfLoadExtension('Scribunto'); wfLoadExtension( 'Scribunto' );
wfLoadExtension('SecureLinkFixer'); wfLoadExtension( 'SecureLinkFixer' );
wfLoadExtension('SpamBlacklist'); wfLoadExtension( 'SpamBlacklist' );
wfLoadExtension('SyntaxHighlight_GeSHi'); wfLoadExtension( 'SyntaxHighlight_GeSHi' );
wfLoadExtension('TemplateData'); wfLoadExtension( 'TemplateData' );
wfLoadExtension('TextExtracts'); wfLoadExtension( 'TextExtracts' );
wfLoadExtension('TitleBlacklist'); wfLoadExtension( 'TitleBlacklist' );
wfLoadExtension('VisualEditor'); wfLoadExtension( 'VisualEditor' );
$wgVisualEditorAvailableNamespaces = array( $wgVisualEditorAvailableNamespaces = array(
NS_MAIN => true, NS_MAIN => true,
NS_COLA_TALK => true, NS_COLA_TALK => true,
NS_USER => true, NS_USER => true,
NS_HELP => true, NS_HELP => true,
NS_PROJECT => true, NS_PROJECT => true,
NS_CONRAD => true, NS_CONRAD => true,
NS_LAURA => true, NS_LAURA => true,
NS_COLA => true NS_COLA => true
); );
wfLoadExtension('WikiEditor'); wfLoadExtension( 'WikiEditor' );
# End of automatically generated settings. # End of automatically generated settings.
@ -279,18 +279,18 @@ wfLoadExtension('WikiEditor');
# Adding Lockdown for Page restrictions # Adding Lockdown for Page restrictions
####################################### #######################################
wfLoadExtension('Lockdown'); wfLoadExtension( 'Lockdown' );
# Lockdown for Conrads NS # Lockdown for Conrads NS
$wgNamespacePermissionLockdown[NS_CONRAD]['read'] = ['conradgroup']; $wgNamespacePermissionLockdown[NS_CONRAD]['read'] = [ 'conradgroup' ];
$wgNamespacePermissionLockdown[NS_CONRAD]['edit'] = ['conradgroup']; $wgNamespacePermissionLockdown[NS_CONRAD]['edit'] = [ 'conradgroup' ];
$wgNonincludableNamespaces[] = NS_CONRAD; $wgNonincludableNamespaces[] = NS_CONRAD;
# Lockdown for Lauras NS # Lockdown for Lauras NS
$wgNamespacePermissionLockdown[NS_LAURA]['read'] = ['lauragroup']; $wgNamespacePermissionLockdown[NS_LAURA]['read'] = [ 'lauragroup' ];
$wgNamespacePermissionLockdown[NS_LAURA]['edit'] = ['lauragroup']; $wgNamespacePermissionLockdown[NS_LAURA]['edit'] = [ 'lauragroup' ];
$wgNonincludableNamespaces[] = NS_LAURA; $wgNonincludableNamespaces[] = NS_LAURA;
# Lockdown for CoLa NS # Lockdown for CoLa NS
$wgNamespacePermissionLockdown[NS_COLA]['read'] = ['colagroup']; $wgNamespacePermissionLockdown[NS_COLA]['read'] = [ 'colagroup' ];
$wgNamespacePermissionLockdown[NS_COLA]['edit'] = ['colagroup']; $wgNamespacePermissionLockdown[NS_COLA]['edit'] = [ 'colagroup' ];
$wgNonincludableNamespaces[] = NS_COLA; $wgNonincludableNamespaces[] = NS_COLA;
#wfLoadExtension( 'ClipUpload' ); #wfLoadExtension( 'ClipUpload' );
@ -301,7 +301,7 @@ $wgClipUP_MaxFileSize = "10000";
# MSUpload Extension # MSUpload Extension
#################### ####################
wfLoadExtension('MsUpload'); wfLoadExtension( 'MsUpload' );
# Options # Options
$wgMSU_useDragDrop = true; // Should the drag & drop area be shown? (Not set by default) $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_showAutoCat = true; // Files uploaded while editing a category page will be added to that category
@ -319,7 +319,7 @@ $wgAllowTitlesInSVG = true;
# PdfHandler Extension # PdfHandler Extension
###################### ######################
wfLoadExtension('PdfHandler'); wfLoadExtension( 'PdfHandler' );
# Options # Options
$wgPdfProcessor = '/usr/bin/gs'; $wgPdfProcessor = '/usr/bin/gs';
#$wgPdfPostProcessor = $wgImageMagickConvertCommand; // if defined via ImageMagick #$wgPdfPostProcessor = $wgImageMagickConvertCommand; // if defined via ImageMagick
@ -330,7 +330,7 @@ $wgPdftoText = '/usr/bin/pdftotext';
# Allow External Images from my own servers # Allow External Images from my own servers
$wgAllowExternalImages = true; $wgAllowExternalImages = true;
$wgAllowExternalImagesFrom = ['http://127.0.0.1/', 'https://cloud.rd13server.de/']; // MediaWiki 1.14+ $wgAllowExternalImagesFrom = [ 'http://127.0.0.1/', 'https://cloud.rd13server.de/' ]; // MediaWiki 1.14+
# Extend preview creation file size and pixel size # Extend preview creation file size and pixel size
# Maximum amount of virtual memory available to shell processes under Linux, in KiB. # Maximum amount of virtual memory available to shell processes under Linux, in KiB.
@ -339,7 +339,7 @@ $wgMaxShellFileSize = 307200;
# Support Video Files and external Video Sources # Support Video Files and external Video Sources
################################################ ################################################
wfLoadExtension('EmbedVideo'); wfLoadExtension( 'EmbedVideo' );
$wgEmbedVideoAddFileExtensions = true; // Boolean - Enable or disable adding video/audio file extensions to the list of allowable files to be uploaded. $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. $wgEmbedVideoEnableVideoHandler = true; // Boolean - Enable or disable the video media handlers for displaying embedded video in articles.
@ -360,7 +360,7 @@ $wgCategoryTreeDefaultMode = 10;
# Math Formula extensions # Math Formula extensions
########################## ##########################
wfLoadExtension('Math'); wfLoadExtension( 'Math' );
# Install instructions # Install instructions
# run this command from wiki root maintanence e.g. /var/www/html/maintenance # run this command from wiki root maintanence e.g. /var/www/html/maintenance
@ -376,11 +376,11 @@ $wgMathMathMLUrl = 'https://mathoid-beta.wmflabs.org/';
# Json Extension needed for Graph extension # Json Extension needed for Graph extension
########################################### ###########################################
wfLoadExtension('JsonConfig'); wfLoadExtension( 'JsonConfig' );
# Adding Graph extension # Adding Graph extension
######################### #########################
wfLoadExtension('Graph'); wfLoadExtension( 'Graph' );
# https://www.mediawiki.org/wiki/Extension:Graph # https://www.mediawiki.org/wiki/Extension:Graph
# My be some files are missing and Modules need to be added unter Additional config setup # My be some files are missing and Modules need to be added unter Additional config setup
# but i dont know how atm # but i dont know how atm
@ -388,20 +388,20 @@ wfLoadExtension('Graph');
# Adding Maps Support # Adding Maps Support
###################### ######################
# Uncomment after installing # Uncomment after installing
# Istalling with: all in wiki root html # Istalling with: all in wiki root html
# curl https://getcomposer.org/composer-2.phar > composer.phar # curl https://getcomposer.org/composer-2.phar > composer.phar
# mv composer.phar /usr/local/bin/composer # mv composer.phar /usr/local/bin/composer
# chmod +x /usr/local/bin/composer # chmod +x /usr/local/bin/composer
# COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~8.0 # COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~8.0
# composer update # composer update
# composer update mediawiki/maps --no-dev -o # composer update mediawiki/maps --no-dev -o
# inside the wiki shell # inside the wiki shell
wfLoadExtension('Maps'); wfLoadExtension( 'Maps' );
$egMapsDefaultService = 'leaflet'; $egMapsDefaultService = 'leaflet';
$egMapsDefaultGeoService = 'nominatim'; $egMapsDefaultGeoService = 'nominatim';
# Kartographer as a subcategory # Kartographer as a subcategory
wfLoadExtension('Kartographer'); wfLoadExtension( 'Kartographer' );
# Global OpenStreetmap tile Server # Global OpenStreetmap tile Server
# Open Streetmap Tile server does not serve @2x tiles # Open Streetmap Tile server does not serve @2x tiles
@ -429,24 +429,23 @@ wfLoadExtension('Kartographer');
# Retina Bildschirme schicken noch ein @2x in der URL mit dies kann der Deutsche Tile Server auch noch nicht. # Retina Bildschirme schicken noch ein @2x in der URL mit dies kann der Deutsche Tile Server auch noch nicht.
# Eigener Martin Tile Server (ueber NPM/HTTPS erreichbar) # Eigener Martin Tile Server (ueber NPM/HTTPS erreichbar)
# tileserver-gl liefert Raster-PNG unter /styles/osm-intl/{z}/{x}/{y}.png # Beispiel: https://tiles.rd13server.de
# Kartographer baut URLs als {MapServer}/{Style}/{z}/{x}/{y}.png $wgKartographerMapServer = 'https://tiles.rd13server.de';
# -> https://tiles.rd13server.de/styles/osm-intl/{z}/{x}/{y}.png
$wgKartographerMapServer = 'https://tiles.rd13server.de/styles';
# Verfuegbare Styles aus dem Martin Server # Verfuegbare Styles aus dem Martin Server
$wgKartographerStyles = [ $wgKartographerStyles = [
'osm-intl', 'osm-bright',
'satellite-hybrid',
]; ];
# Standardstil fuer <mapframe> / <maplink> # Standardstil fuer <mapframe> / <maplink>
$wgKartographerDfltStyle = 'osm-intl'; $wgKartographerDfltStyle = 'osm-bright';
$wgKartographerSrcsetScales = [1]; $wgKartographerSrcsetScales = [ 1, 1.5, 2 ];
# Adding Musical notation with score Notation # Adding Musical notation with score Notation
############################################# #############################################
wfLoadExtension('Score'); wfLoadExtension( 'Score' );
########################################## ##########################################
# Some security risks check for updates # Some security risks check for updates
# User could execute code through it if users are trustworthy there shouldnt be a problem # User could execute code through it if users are trustworthy there shouldnt be a problem
@ -459,7 +458,7 @@ $wgShellRestrictionMethod = 'firejail';
#$wgMaxShellMemory = xxxx; #$wgMaxShellMemory = xxxx;
# Timedmedia Extension needed for Score and Video Support # Timedmedia Extension needed for Score and Video Support
wfLoadExtension('TimedMediaHandler'); wfLoadExtension( 'TimedMediaHandler' );
#$wgFFmpegLocation = '/usr/bin/ffmpeg'; # already set under embedvideo #$wgFFmpegLocation = '/usr/bin/ffmpeg'; # already set under embedvideo
#$wgMaxShellMemory = xxxx; # For performance issuse #$wgMaxShellMemory = xxxx; # For performance issuse