From 4e0bdf93109c4d3e42c9218599fb8ff8febc165c Mon Sep 17 00:00:00 2001 From: Conrad Schulz Date: Mon, 28 Dec 2020 17:21:15 +0100 Subject: [PATCH] update repo with LocalSettings.php --- LocalSettings.php | 176 ++++++++++++++++++++++++++++++++++++++++++++++ stack.yml | 2 +- 2 files changed, 177 insertions(+), 1 deletion(-) create mode 100644 LocalSettings.php diff --git a/LocalSettings.php b/LocalSettings.php new file mode 100644 index 0000000..2967306 --- /dev/null +++ b/LocalSettings.php @@ -0,0 +1,176 @@ + "$wgResourceBasePath/resources/assets/wiki.png" ]; + +## UPO means: this is also a user preference option + +$wgEnableEmail = true; +$wgEnableUserEmail = true; # UPO + +$wgEmergencyContact = "conradschulz@gmail.com"; +$wgPasswordSender = "conradschulz@gmail.com"; + +$wgEnotifUserTalk = true; # UPO +$wgEnotifWatchlist = true; # UPO +$wgEmailAuthentication = true; + +## Database settings +$wgDBtype = "mysql"; +$wgDBserver = "10.0.2.6"; +$wgDBname = "rd13_mediawiki"; +$wgDBuser = "wikiuser"; +$wgDBpassword = "rd13mediawikidbpw"; + +# 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: +$wgEnableUploads = true; +$wgUseImageMagick = true; +$wgImageMagickConvertCommand = "/usr/bin/convert"; + +# 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 = "29d64632779d0cae7e6ab5b6236cecb00330fc414b37c894f08b7e82ba5e3d85"; + +# 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 = "74aac39ff9390d7b"; + +## 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( 'PageImages' ); +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. + diff --git a/stack.yml b/stack.yml index d83c806..e8c922b 100644 --- a/stack.yml +++ b/stack.yml @@ -16,7 +16,7 @@ services: # After initial setup, download LocalSettings.php to the same directory as # this yaml and uncomment the following line and use compose to restart # the mediawiki service - # - ./LocalSettings.php:/var/www/html/LocalSettings.php + - ./LocalSettings.php:/var/www/html/LocalSettings.php database: image: mariadb restart: always