268 lines
No EOL
9.9 KiB
PHP
268 lines
No EOL
9.9 KiB
PHP
<?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;
|
|
|
|
$wgSitename = "CoLa Wissensdatenbank";
|
|
$wgMetaNamespace = "CoLa_Wissensdatenbank";
|
|
|
|
## 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
|
|
# DNS Based Config
|
|
$wgServer = "https://wiki.rd13server.de";
|
|
# IP Based Config
|
|
#$wgServer = "http://192.168.178.5:8090";
|
|
|
|
$wgForceHTTPS = true;
|
|
|
|
# Fix to solve net::ERR_HTTP2_PROTOCOL_ERROR 200 in Browsers other than Firefox in Desktops
|
|
$wgDisableOutputCompression = true;
|
|
|
|
#$wgInternalServer = '192.168.178.6';
|
|
|
|
# Add Trusted Proxys
|
|
####################
|
|
$wgUseCdn = true;
|
|
$wgCdnServers = array();
|
|
$wgCdnServers[] = "192.168.178.6";
|
|
|
|
# Use Squid
|
|
#$wgUseSquid = true;
|
|
#$wgSquidServers = array();
|
|
#$wgSquidServers[] = "192.168.178.6";
|
|
|
|
# CORS Settings
|
|
#$wgCrossSiteAJAXdomains = [
|
|
# '*'
|
|
#];
|
|
|
|
## 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!
|
|
$wgLogos = [ '1x' => "$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; |